最简单的gui构建器(tk/gtk),用于rad脚本
grun的Python项目详细描述
一个简单的例子,将您的方法转换为gui表单
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")
将显示:
在Linux/BSD、Windows和Mac上使用TK框架(或PyGTK,如果可用)
版本0.14(2009/10/05):
- bugfix : use of the grun decorator was buggued (func_closure)
- local config enabled, if the conf file is in the root app
版本0.13(2009/10/03):
- fix: gtk number-widget wasn’t initialized when value was None
- tk iconapp simulate now a grunapp (not a popup’app anymore)
版本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
版本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)
0.1版(2009/09/28):首次公开发布