tkinter (Python 3 only) input panel (nearly) without tkinter programming
This class allows you to build an editing GUI based on your data.
Inputs update your data automatically.
It saves a lot of coding for a GUI in tkinter.
InputPanel creates Entries and selects for Variables
contained in a Dictionary structure
The dictionary structure (datadict) needs at least the three nested dicts and a list described below.
For each one key must be an entry in every dict!
The list 'order' is used for processing, it defines the order of appearance from top to down.
You can pass a list 'order' even with only one field e.g. to init
and only this field will be processed
From the initial values provided the datatype of the variables will be derived!
a default value of appropriate type must be present in the dict 'values'
<class 'bool'>, <class 'int'>, <class 'float'> and <class 'str'> are available.
See the values in the simple.py example in this package
datadict={
'verbose_names':{},
'values':{},
'callback_vars':{},
'order':[],
}
if a dict units is added to the datadict, the units will be displayed behind the entry widgets
Installation :
clone this repo go to its root directory pip install . then run python examples/simple.py to test if it works