{"id":18898411,"url":"https://github.com/hychen/pkg-vsgui","last_synced_at":"2026-03-01T10:30:17.299Z","repository":{"id":2114746,"uuid":"3056820","full_name":"hychen/pkg-vsgui","owner":"hychen","description":"debian pacakge of vsgui","archived":false,"fork":false,"pushed_at":"2011-12-27T14:16:28.000Z","size":96,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-31T08:45:42.532Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hychen.png","metadata":{"files":{"readme":"README.txt","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-12-27T14:02:14.000Z","updated_at":"2019-04-02T04:25:52.000Z","dependencies_parsed_at":"2022-09-02T05:50:58.408Z","dependency_job_id":null,"html_url":"https://github.com/hychen/pkg-vsgui","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hychen%2Fpkg-vsgui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hychen%2Fpkg-vsgui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hychen%2Fpkg-vsgui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hychen%2Fpkg-vsgui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hychen","download_url":"https://codeload.github.com/hychen/pkg-vsgui/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239879317,"owners_count":19712176,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T08:42:32.694Z","updated_at":"2026-03-01T10:30:15.715Z","avatar_url":"https://github.com/hychen.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"VSGUI - Very Simple Graphic Interface Library for Python\n========================================================\n\nDescription\n-----------\n\nIt proides a simple functions to comuunicate with `zenity` which\nis a program that will display GTK+ dialogs, and return\n(either in the return code, or on standard output) the users input.\nThis allows you to present information, and ask for information from\nthe user, from all manner of shell scripts.\n\nRequirement\n-----------\n\n* Python \u003e=2.5\n* Python UCLTIP module \u003e= 0.6-1 (http://pypi.python.org/pypi/ucltip)\n* Zenity\n\nHow To install\n--------------\n\nfor Ubuntu Users\n\n::\n\n\t$ apt-get install python-ucltip\n\nfor Debian Users\n\n::\n\t$ apt-get install zenity\n\t$ apt-get install python-ucltip\n\nVSGUI is not in Debian/Ubuntu archive.\nright now please use `setup.py` to install\n\nHow To Use\n----------\n\nThe source code includes some examples which are in example directory, so you can take a qucik look before you\nstart coding, and thre are two part of this library as below\n\n1. High Level API functions\n---------------------------\n\nBefore start, you need to import api funcitons:\n\n::\n\tfrom vsgui.api import *\n\nDialogs\n\n::\n\tfrom vsgui.api import *\n\n\t# information dialog\n\tinfo(msg)\n\n\t# warring dialog\n\twarning(msg):\n\n\t# error dialog\n\terror(msg):\n\n\t# error dialog and terminate script\n\tdie(msg):\n\n\t# notice dialog (does not work in Unity)\n\tnotice(msg):\n\nInput Text\n\n::\n\t# input text\n\task_text(text, initial=None)\n\n\t# input password,\n\task_passwd(text)\n\n\t# check password\n\t#\n\t# - 1234 is the password we except user to type\n\t# - 5 means user can try to input 5 times if the password is wrong\n\t# - password is wrong is just a error message shows in an error dialog\n\tcheck_passwd('1234', 5, 'password is wrong')\n\nQuestions\n\n::\n\n\t# ask user the anwser is yes or no\n\task_yesno(text, y=None, n=None):\n\n\t# ask user select a or b\n\task_ab(text, a, b):\n\n\t# ask user passowrd, and check it\n\tcheck_passwd(wanted, count=3, text='', errmsg='wrong password, try again!')\n\nProgress\n-------\n\n::\n\t# launch a progress bar and create a update function\n\tupdate = progress('downloading files')\n\n\t# update progress bar message ot 'md5sum checking' and progessive number to 90\n\tupdate(90, 'md5sum checking')\n\n\t# launch a progress bar\n\tpulsate_progress('starting')\n\nFile\n----\n\n::\n\n\t# ask user to select a file path\n\task_filepath()\n\n\t# ask user to select multiple file paths\n\task_filepaths()\n\n\t# ask user to select a directory path\n\task_dirpath()\n\n\t# ask user to select multiple directory paths\n\task_dirpaths()\n\nOther\n-----\n\n\task_scalevalue('label')\n\n2. Zenity Class\n---------------\n\nif api functions is not enough, you can use Zenity class direcly to get\nmore powerful feature.\n\n::\n\tfrom vsgui.zenity import Zenity\n\tz = Zenity()\n\n\t# same as executing 'zenity --file-selection --filename=a.txt'\n\tz.file_selection(filename='a.txt')\n\nGet invlolved\n=============\n\nif you are interesting to help, please contact author,\n   Hychen, his email is  \u003cossug.hychen at gmail.com\u003e.\n\nThe VCS of code is avaliabl on  http://github.com/hychen/vsgui\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhychen%2Fpkg-vsgui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhychen%2Fpkg-vsgui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhychen%2Fpkg-vsgui/lists"}