PyQt4 form that returns individual keypresses to python, allows user to update label colors/text
Orçamento $30-100 USD
I need a python class that will create a pyqt4 form, and populate it with several buttons and a label. I would like feedback on porting to pyside. It should be well-documented, work on linux and windows, and have these characteristics:
Layout:
* An array of 1-5 square (~100px) buttons, aligned horizontally
* Text label above button array, centered
* Quit button lower right
Functionality:
Class should have the following functions:
* Init, which accepts the following arguments:
* Form coordinates. Default = centered
* List of button labels. # list items = # buttons. Default = ['1','2']
* Label text
* Form title
* Change button colors. Accepts a dict with string keys to specify button labels to update, and vals to specify colors
* Update the label text
* Get the coordinates of the form
* Like raw_input python function. See below
Behavior:
The default behavior should be non-modal. Upon creation, it should give control back to python, and ignore user input. Then when the function is called:
ret = form.get_response()
the form will wait for input (button click or keypress) modally, then return the inputted character and control back to python again.