Skip to main content

Creates a Qt Editor for arbitrary Python Objects using Reflection.

Project description

Editorium creates Qt editors for objects or functions via reflection.

Object fields or method parameters are reflected and an editor generated for each field or parameter. For instance an int field is generated as a QSpinBox editor.

Please see the StringCoercion project for the command-line equivalent.

Features

  • Generate editor for field/type
  • Generate editors for object
  • Generate editors for function call
  • Read fields from object to editors
  • Write fields from editors into object
  • Supports custom editors and extensions

Default editors

Type AbstractEditor QWidget
int IntEditor QSpinBox
float FloatEditor QLineEdit
str StringEditor QLineEdit
Optional[T] [1] NullableEditor QCheckBox & Editor(T)
bool BoolEditor QCheckBox
Enum AbstractEnumEditor [3] QComboBox
Flags FlagsEditor QCheckBox[]
List[T] ListTEditor Editor(T)`[]`
Filename [2] AbstractBrowserEditor QLineEdit & QToolButton
[1]Optional[T] is a PEP-484 annotation supplied by Python’s typing library and indicates that a value may be None.
[2]Filename is a PEP-484-style annotation provided by the MHelper library and provides hints on an acceptable filename e.g. Filename[“.txt”, EMode.SAVE].
[3]The StringCoercion library is queried to obtain the list of options for types such as Enum, so if you have registered your list providers with StringCoercion you will not need to do so again for Editorium.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for editorium, version 0.0.0.30
Filename, size File type Python version Upload date Hashes
Filename, size editorium-0.0.0.30.tar.gz (15.9 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page