The simplest GUI builder (tk/gtk), for RAD scripts
Project description
A simple example, turn your methods into gui forms
from grun import grun
@grun
def my_window( name, passwd, cookie=["1 day","1 week","1 month"] ):
'''Hello, I'm the method's doc
name: Login
passwd: Password
cookie: How long ?
'''
if name == passwd:
return True
else:
grun("Set login == password !")
print my_window(cookie="1 day")
will display :
Works on Linux/BSD, Windows and Mac using Tk framework (or pygtk when available)
See more infos
Version 0.12 (2009/10/03):
tk popup should work as expected on win32 (no more tk.mainloop) !!!!!!!
tk winform should focus on first entry now (seems not work on win ?!)
popup/popapp actions wich return something returns it after grun.popup
Version 0.11 (2009/10/01):
clipboard manager available grun.clipboard
better shortcut grun.popup()
better shortcut grun.form()
popup menu works with any types of value
popup menu support submenu too !
tk: text widget with usable scrollbars now
tk: fix in msgbox (always of type error)
tk: home-made-combobox, replaced by Tk.OptionMenu
tk: better simulation of tk popapp/popupmenu (no more ‘close’ entry)
Version 0.1 (2009/09/28): Initial Public Release
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file grun-0.12.tar.gz.
File metadata
- Download URL: grun-0.12.tar.gz
- Upload date:
- Size: 17.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
afb2c96c59188e472d22d50e45badf45074fda51abef4b16eb69c9c341f25958
|
|
| MD5 |
7e02ac8f31664c15a603d8424c7c2653
|
|
| BLAKE2b-256 |
cd93c0caec27483e1325bb6e1a683a606f10ca6cb4c1cc23bc3a2252bf897d8b
|
File details
Details for the file grun-0.12-py2.6.egg.
File metadata
- Download URL: grun-0.12-py2.6.egg
- Upload date:
- Size: 42.9 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
335f116f4beb4e5e8757499c7035cb866751c93b8bd7ead90df2710205229b51
|
|
| MD5 |
641e5f0f565e42d9faf0c991a0032a28
|
|
| BLAKE2b-256 |
1359613166fcae81bbd275df323b41412fdcf06dc89edbe70a2edfc578ace036
|