yaq-project / qtypes

Build Python Qt graphical user interfaces out of simple type objects.
GNU Lesser General Public License v3.0
0 stars 2 forks source link

qtypes

PyPI Conda black log

Build qt graphical user interfaces out of simple type objects.

Installation

TODO

Types

Bool

value: bool

Button

value: None
background_color: str
text: str
text_color: str

Enum

value: str
allowed: List[str]

Float

value: double
units: str
minimum: double
maximum: double
decimals: int

Note that units support works via pint

Integer

value: int
minimum: int
maximum: int

String

value: str

Examples

qtypes comes with a few examples right out of the box. Run them using the python module syntax, e.g.:

$ python -m qtypes.examples one_of_each

Included examples:

example description
one_of_each Simple example displaying one of each type with some inspection tools.
units Example demonstrating units support for qtypes Float object.