https://github.com/atsushisakai/simpletkguikit
Simple GUI kit with Python tkinter
https://github.com/atsushisakai/simpletkguikit
Last synced: 6 months ago
JSON representation
Simple GUI kit with Python tkinter
- Host: GitHub
- URL: https://github.com/atsushisakai/simpletkguikit
- Owner: AtsushiSakai
- License: mit
- Created: 2015-12-26T04:43:45.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2017-09-15T17:04:16.000Z (about 8 years ago)
- Last Synced: 2024-05-02T01:09:39.689Z (over 1 year ago)
- Language: Python
- Size: 114 KB
- Stars: 8
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
SimpleTkGUIKit
===============
This is a simple GUI kit with Python tkinterIt is useful for parameter configuration with GUI
# Install
> sudo pip install SimpleTkGUIKit
# Usage
All APIs can be aviable to just import it:
from SimpleTkGUIKit import SimpleTkGUIKit
## GetFilePathsWithDialog
You can get file full-paths with file dialog.
fileList=SimpleTkGUIKit.GetFilePathsWithDialog()
print fileListIf you set the fileTypes, the client have to select files of the file types.
fileList=SimpleTkGUIKit.GetFilePathsWithDialog(fileTypes=[('CSV Files', '.csv')])
print fileList## GetRadioButtonSelect
You can select a option among list options with the radio button GUI:
(selected,index)=SimpleTkGUIKit.GetRadioButtonSelect(["sample a","sample b","sample c"])
print selectedThe GUI shows up, you can choise a option.

And then, you push the OK button, get the selected option.
You also set a title and a label on the GUI
(selected,index)=SimpleTkGUIKit.GetRadioButtonSelect(["Red","Green","Blue"],title="Color Select",msg="Please select color")
print selectedyou can see the GUI.

## GetListSelect
You can select a option with list GUI in the same way of the radio button api.
print "GetListSelect"
(selected,index)=SimpleTkGUIKit.GetListSelect(["sample a","sample b","sample c"])
print (selected,index)
Also, there are some GUI options.
(selected,index)=SimpleTkGUIKit.GetListSelect(["sample a","sample b","sample c"], title="Select sample", msg="Please select sample")
print (selected,index)
## GetCheckButtonSelect
This is check Button selection API, so you can select multiple options.
print "GetCheckButtonSelect"
optList=SimpleTkGUIKit.GetCheckButtonSelect(["sample a","sample b","sample c"], title="Select sample", msg="Please select sample")
This API returns dictionary of the selected options.
## GetEntries
This API is used for getting some string entries.
print "GetEntries"
dataList=SimpleTkGUIKit.GetEntries(["x","y","z"], title="set entris", msg="Please set entries")
print dataListYou can set arbitrary string entries with the GUI.

You can set number in the entry,
but them you have to convert the number string to int or float.## PyPI site
[SimpleTkGUIKit](https://pypi.python.org/pypi/SimpleTkGUIKit/)
## Licence
[MIT](https://github.com/AtsushiSakai/googleearthplot/blob/master/LICENSE)
## Author
[AtsushiSakai](http://atsushisakai.github.io/)