Skip to content

tkinter (Python 3 only) input panel (nearly) without tkinter programming

License

Notifications You must be signed in to change notification settings

mayersre/tkinterInputPanel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tkinterInputPanel

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

About

tkinter (Python 3 only) input panel (nearly) without tkinter programming

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages