Skip to content

Instantly share code, notes, and snippets.

"""
Utilities for inspecting/modifying widget geometry state as returned/set by
`QWidget.saveGeometry` and `QWidget.restoreGeometry`
"""
import struct
from collections import namedtuple
#: Parsed geometry state (version 1; Qt < 5.4)
"""
FreeViz
-------
Compute a lower dimensional linear projection to optimize separation
between classes.
"""
import numpy
"""
Tail call 'optimization'
------------------------
A simple tail call 'optimization' implemented by a trampoline.
Usage
-----
Use the `tailrec` decorator on the function, and change the tail recursive