Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
I wrote a script
Graphicinterface Wanted
I dont want to use PyGTK,    PyQT
there is a toolnamed zenity
UCLTIPUse Command Line Tool In Python
Command → Python ClassCommand Arugs → method argsCommand Options → method keyword args
$ zenity –info –text Hi All#!/usr/bin/pythonfrom ucltip import CmdDispatcherzenity = CmdDispatcher(zenity)obj = zenity()ob...
Info(“Hi All”)
VSGUI            Very Simple GUIProvide a syntax sugar to use zenity in Python
Progressive Barupdate=progress("processing text....")import timeupdate(20, "setp 1") # update % and titletime.sleep(1)upda...
Module Name in PyPy: vsgui apt-get install python-vsgui
Upcoming SlideShare
Loading in …5
×

讓 Python Script 擁有圖形化介面的簡單方法

1,743 views

Published on

by 陳信屹 (hychen)

Published in: Technology, Education
  • Be the first to comment

  • Be the first to like this

讓 Python Script 擁有圖形化介面的簡單方法

  1. 1. I wrote a script
  2. 2. Graphicinterface Wanted
  3. 3. I dont want to use PyGTK, PyQT
  4. 4. there is a toolnamed zenity
  5. 5. UCLTIPUse Command Line Tool In Python
  6. 6. Command → Python ClassCommand Arugs → method argsCommand Options → method keyword args
  7. 7. $ zenity –info –text Hi All#!/usr/bin/pythonfrom ucltip import CmdDispatcherzenity = CmdDispatcher(zenity)obj = zenity()obj.info(text=Hi All)
  8. 8. Info(“Hi All”)
  9. 9. VSGUI Very Simple GUIProvide a syntax sugar to use zenity in Python
  10. 10. Progressive Barupdate=progress("processing text....")import timeupdate(20, "setp 1") # update % and titletime.sleep(1)update(40, "setp 2") To Demo --->
  11. 11. Module Name in PyPy: vsgui apt-get install python-vsgui

×