/usr/share/pyshared/vsgui-0.3.3.egg-info is in python-vsgui 0.3.3-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 | Metadata-Version: 1.1
Name: vsgui
Version: 0.3.3
Summary: Very Simple Graphical library for Python shell script
Home-page: UNKNOWN
Author: Hsin-Yi Chen 陳信屹 (hychen)
Author-email: ossug.hychen@gmail.com
License: BSD-2-clause License
Description: VSGUI - Very Simple Graphic Interface Library for Python
========================================================
Description
-----------
It proides a simple functions to comuunicate with `zenity` which
is a program that will display GTK+ dialogs, and return
(either in the return code, or on standard output) the users input.
This allows you to present information, and ask for information from
the user, from all manner of shell scripts.
Requirement
-----------
* Python >=2.5
* Python UCLTIP module >= 0.6-1 (http://pypi.python.org/pypi/ucltip)
* Zenity
How To install
--------------
for Ubuntu Users
::
$ apt-get install python-ucltip
for Debian Users
::
$ apt-get install zenity
$ apt-get install python-ucltip
VSGUI is not in Debian/Ubuntu archive.
right now please use `setup.py` to install
How To Use
----------
The source code includes some examples which are in example directory, so you can take a qucik look before you
start coding, and thre are two part of this library as below
1. High Level API functions
---------------------------
Before start, you need to import api funcitons:
::
from vsgui.api import *
Dialogs
::
from vsgui.api import *
# information dialog
info(msg)
# warring dialog
warning(msg):
# error dialog
error(msg):
# error dialog and terminate script
die(msg):
# notice dialog (does not work in Unity)
notice(msg):
Input Text
::
# input text
ask_text(text, initial=None)
# input password,
ask_passwd(text)
# check password
#
# - 1234 is the password we except user to type
# - 5 means user can try to input 5 times if the password is wrong
# - password is wrong is just a error message shows in an error dialog
check_passwd('1234', 5, 'password is wrong')
Questions
::
# ask user the anwser is yes or no
ask_yesno(text, y=None, n=None):
# ask user select a or b
ask_ab(text, a, b):
# ask user passowrd, and check it
check_passwd(wanted, count=3, text='', errmsg='wrong password, try again!')
Progress
-------
::
# launch a progress bar and create a update function
update = progress('downloading files')
# update progress bar message ot 'md5sum checking' and progessive number to 90
update(90, 'md5sum checking')
# launch a progress bar
pulsate_progress('starting')
File
----
::
# ask user to select a file path
ask_filepath()
# ask user to select multiple file paths
ask_filepaths()
# ask user to select a directory path
ask_dirpath()
# ask user to select multiple directory paths
ask_dirpaths()
Other
-----
ask_scalevalue('label')
2. Zenity Class
---------------
if api functions is not enough, you can use Zenity class direcly to get
more powerful feature.
::
from vsgui.zenity import Zenity
z = Zenity()
# same as executing 'zenity --file-selection --filename=a.txt'
z.file_selection(filename='a.txt')
Get invlolved
=============
if you are interesting to help, please contact author,
Hychen, his email is <ossug.hychen at gmail.com>.
The VCS of code is avaliabl on http://github.com/hychen/vsgui
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.5
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires: ucltip(>=0.6)
|