狠狠撸

狠狠撸Share a Scribd company logo
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/python
from 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 time
update(20, "setp 1") # update % and title
time.sleep(1)
update(40, "setp 2")



 To Demo --->
Module Name in PyPy: vsgui

 apt-get install python-vsgui

More Related Content

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