If you can't read please download the document
Upload
pycontw
View
1.648
Download
1
Embed Size (px)
Citation preview
I wrote a script
Graphic interface Wanted
I don't want to use PyGTK, PyQT
there is a tool named zenity
UCLTIP
Use Command Line Tool In Python
Command Python Class
Command Arugs method args
Command Options method keyword args
$ zenity info text 'Hi All'
#!/usr/bin/pythonfrom ucltip import CmdDispatcher
zenity = CmdDispatcher('zenity')
obj = zenity()obj.info(text='Hi All')
Info(Hi All)
VSGUI
Very Simple GUI
Provide a syntax sugar to use zenity in Python
Progressive Bar
update=progress("processing text....")
import timeupdate(20, "setp 1") # update % and titletime.sleep(1)update(40, "setp 2")
To Demo --->
Module Name in PyPy: vsgui
apt-get install python-vsgui