Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/igortg/simplewidgets
Rapidly build GUI with Python and Qt
https://github.com/igortg/simplewidgets
Last synced: about 1 month ago
JSON representation
Rapidly build GUI with Python and Qt
- Host: GitHub
- URL: https://github.com/igortg/simplewidgets
- Owner: igortg
- License: lgpl-3.0
- Created: 2014-06-09T23:54:34.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2023-06-24T13:37:37.000Z (over 1 year ago)
- Last Synced: 2025-01-11T20:53:27.369Z (about 1 month ago)
- Language: Python
- Size: 70.3 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
SimpleWidgets
=============Rapidly build GUI with Python and Qt
### Simple Example
The above code construct a dialog, waits for the user input and return window contents in a `namedtuple`.
```python
from PyQt4.QtGui import QApplication
from simplewidgets.fields import LineTextField, IntField, ChoiceField
from simplewidgets.simplewidget import SimpleDialogclass DemoDialog(SimpleDialog):
name = LineTextField(label="Name")
age = IntField(30, label="Age")
gender = ChoiceField(["Male", "Female"], initial="Female", label="Gender")app = QApplication([])
demo = DemoDialog()
if demo.exec_accepted():
data = demo.get_data()
```
print data
>> SimpleData(name=u'', age=30, gender='Female')[](https://travis-ci.org/igortg/simplewidgets)