{ "info": { "author": "poulp", "author_email": "mathieu.nerv@gmail.com", "bugtrack_url": null, "classifiers": [], "description": ".. image:: https://badge.fury.io/py/python-zenity.png\n :target: http://badge.fury.io/py/python-zenity\n \npython-zenity\n*************\n\npython-zenity is a library for python wich inspired by Zenity. When you write scripts, \nyou can use python-zenity to create simple dialogs that interact graphically with the user.\n\nRequirements\n============\n\n* Python 2.x (x>6)\n* PyGTK\n\nInstallation\n============\n\nInstall using pip :\n\n.. code-block:: bash\n\n $ pip install python-zenity\n\nOr clone the repo :\n\n.. code-block:: bash\n\n $ git clone https://github.com/poulp/python-zenity.git\n $ cd ./python-zenity\n $ python setup.py install\n\nExample\n================\n\nSimple dialog :\n\n.. code-block:: python\n\n from pythonzenity import Calendar\n result = Calendar(title=\"Awesome Calendar\",text_info=\"Your birthday ?\")\n print result\n\nThis code show a calendar dialog :\n \n.. image:: http://i.imgbox.com/abfd26Vb.png\n :align: center\n\nAnd display the result :\n\n.. code-block:: python\n\n $ python test.py\n $ (2013, 7, 8)\n \n \nUsage\n=====\n\nAll the widgets have some common parameters :\n\n+------------------------+-----------------------+--------+\n| Param | Description | Type |\n+========================+=======================+========+\n| title | title of the window | string |\n+------------------------+-----------------------+--------+\n| width | window width | int |\n+------------------------+-----------------------+--------+\n| height | window height | int |\n+------------------------+-----------------------+--------+\n| timeout | in millisecond | int |\n+------------------------+-----------------------+--------+\n\nExample : \n\n.. code-block:: python\n\n Message(title=\"Close in 5 seconds !\", width=800, height=600, timeout=5000)\n\n \nWidgets\n=======\n\nMessage\n-------\n\nDisplay a simple message\n\n+------------------------+-----------------------+--------+\n| Param | Description | Type |\n+========================+=======================+========+\n| text | text inside the window| string |\n+------------------------+-----------------------+--------+\n\nExample : \n\n.. code-block:: python\n\n Message(text=\"Message in the bottle\")\n\nError\n-----\n\nDisplay a simple message as an error\n\n+------------------------+-----------------------+--------+\n| Param | Description | Type |\n+========================+=======================+========+\n| text | text inside the window| string |\n+------------------------+-----------------------+--------+\n\nExample : \n\n.. code-block:: python\n\n Error(text=\"Something wrong!\")\n\nWarning\n-------\n\nDisplay a simple message as an warning\n\n+------------------------+-----------------------+--------+\n| Param | Description | Type |\n+========================+=======================+========+\n| text | text inside the window| string |\n+------------------------+-----------------------+--------+\n\nExample : \n\n.. code-block:: python\n\n Warning(text=\"This operation will delete your computer from the universe\")\n\nQuestion\n--------\n\nDisplay a question, possible answer are yes/no. Return the answer as a boolean\n\n+------------------------+-----------------------+--------+\n| Param | Description | Type |\n+========================+=======================+========+\n| text | text inside the window| string |\n+------------------------+-----------------------+--------+\n\nExample : \n\n.. code-block:: python\n\n Question(text=\"Are you in love with me ?\")\n\nEntry\n-----\n\nDisplay a text input, return value as a string\n\n+------------------------+--------------------------+---------+\n| Param | Description | Type |\n+========================+==========================+=========+\n| text | text inside the window | string |\n+------------------------+--------------------------+---------+\n| entry_text | placeholder for the input| string |\n+------------------------+--------------------------+---------+\n\nExample : \n\n.. code-block:: python\n\n Entry(text=\"1 + 1 ?\", entry_text=\"2\")\n\nPassword\n--------\n\nDisplay a text input with hidden characters, return value as a string.\n\n+------------------------+--------------------------+---------+\n| Param | Description | Type |\n+========================+==========================+=========+\n| text | text inside the window | string |\n+------------------------+--------------------------+---------+\n| entry_text | placeholder for the input| string |\n+------------------------+--------------------------+---------+\n\nExample : \n\n.. code-block:: python\n\n Password(text=\"Need to be authenticated : \")\n \nCalendar\n--------\n\n+------------------------+--------------------------+---------+\n| Param | Description | Type |\n+========================+==========================+=========+\n| text_info | text inside the window | string |\n+------------------------+--------------------------+---------+\n| day | default day | int |\n+------------------------+--------------------------+---------+\n| month | default month | int |\n+------------------------+--------------------------+---------+\n\nFile selection\n--------------\n\nOpen a file selection window, return path of files selected.\n\n+------------------------+---------------------------------------------------+---------+\n| Param | Description | Type |\n+========================+===================================================+=========+\n| multiple | multilple file selection, return a list of files | boolean |\n+------------------------+---------------------------------------------------+---------+\n| directory | only directory selection | boolean |\n+------------------------+---------------------------------------------------+---------+\n| save | save mode | boolean |\n+------------------------+---------------------------------------------------+---------+\n| confirm_overwrite | confirm when a file is overwritten | boolean |\n+------------------------+---------------------------------------------------+---------+\n| filename | placeholder for the filename | string |\n+------------------------+---------------------------------------------------+---------+\n\nExample : \n\n.. code-block:: python\n\n FileSelection(multiple=True)\n\nScale\n-----\n\n+------------------------+---------------------------------------------------+---------+\n| Param | Description | Type |\n+========================+===================================================+=========+\n| text_info | text inside the window | string |\n+------------------------+---------------------------------------------------+---------+\n| value | current value | int |\n+------------------------+---------------------------------------------------+---------+\n| min | minimum value | int |\n+------------------------+---------------------------------------------------+---------+\n| max | maximum value | int |\n+------------------------+---------------------------------------------------+---------+\n| step | incrementation value | int |\n+------------------------+---------------------------------------------------+---------+\n| draw_value | hide/show cursor value | boolean |\n+------------------------+---------------------------------------------------+---------+\n\nExample : \n\n.. code-block:: python\n\n Scale(value=50, min=10, max=110, step=10)\n\nColor selection\n---------------\n\n+------------------------+---------------------------------------------------+---------+\n| Param | Description | Type |\n+========================+===================================================+=========+\n| show_palette | hide/show the palette | boolean |\n+------------------------+---------------------------------------------------+---------+\n\nExample : \n\n.. code-block:: python\n\n ColorSelection(show_palette=True)\n\n\n\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/poulp/python-zenity", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "python-zenity", "package_url": "https://pypi.org/project/python-zenity/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/python-zenity/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/poulp/python-zenity" }, "release_url": "https://pypi.org/project/python-zenity/0.1.3/", "requires_dist": null, "requires_python": null, "summary": "Simple dialog with Python and Gtk", "version": "0.1.3" }, "last_serial": 2372735, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "34f4e7ff6e97f34cda037d38635a26e9", "sha256": "1cc64ef0b37d87bf62d169b7425ddb2e2f5833e6566b258da613d64c028b76b0" }, "downloads": -1, "filename": "python-zenity-0.1.tar.gz", "has_sig": false, "md5_digest": "34f4e7ff6e97f34cda037d38635a26e9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5063, "upload_time": "2014-12-25T15:15:35", "url": "https://files.pythonhosted.org/packages/59/f0/eb28b70a2093c2230c5e12dd3063f72ce47f8604cddb2f3361b3a913880d/python-zenity-0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "bbe84da2f1f532fd930ae55870295359", "sha256": "7a1a8ddbc080788504f086da1c22f17a0f9105a5774bc2a839e87f3f3e53cac6" }, "downloads": -1, "filename": "python-zenity-0.1.1.tar.gz", "has_sig": false, "md5_digest": "bbe84da2f1f532fd930ae55870295359", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5134, "upload_time": "2016-01-06T12:01:46", "url": "https://files.pythonhosted.org/packages/d4/54/b07efeca062da6f16511064b54df5212793da08de18aec101f7d39530439/python-zenity-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "fe381bb45fb54005852e23018d1f59e5", "sha256": "e3c420ff22427bdaacc0f2bb89fab4238cc44c0e307ccc0821f215cd5592eb16" }, "downloads": -1, "filename": "python-zenity-0.1.2.tar.gz", "has_sig": false, "md5_digest": "fe381bb45fb54005852e23018d1f59e5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5544, "upload_time": "2016-02-01T12:18:09", "url": "https://files.pythonhosted.org/packages/81/09/33bc5bce9433cc52bccc3ae0ad32d4b63b9ed16f75e9bd9585aba8e7cbd2/python-zenity-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "ed4bab8a53f2d4080419cd0a44544e08", "sha256": "6e529199af3d18fb891b41b244db6553585b913058dc788f3b9f1e9f026f119d" }, "downloads": -1, "filename": "python-zenity-0.1.3.tar.gz", "has_sig": false, "md5_digest": "ed4bab8a53f2d4080419cd0a44544e08", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5578, "upload_time": "2016-09-30T08:38:29", "url": "https://files.pythonhosted.org/packages/fa/91/5fb971f1e5088523f7dd8dcfcaedf3882c03ae4061df688245697c4131d5/python-zenity-0.1.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ed4bab8a53f2d4080419cd0a44544e08", "sha256": "6e529199af3d18fb891b41b244db6553585b913058dc788f3b9f1e9f026f119d" }, "downloads": -1, "filename": "python-zenity-0.1.3.tar.gz", "has_sig": false, "md5_digest": "ed4bab8a53f2d4080419cd0a44544e08", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5578, "upload_time": "2016-09-30T08:38:29", "url": "https://files.pythonhosted.org/packages/fa/91/5fb971f1e5088523f7dd8dcfcaedf3882c03ae4061df688245697c4131d5/python-zenity-0.1.3.tar.gz" } ] }