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,658 views

Published on

by 陳信屹 (hychen)

Published in: Technology, Education
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,658
On SlideShare
0
From Embeds
0
Number of Embeds
4
Actions
Shares
0
Downloads
15
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

讓 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

×