{ "info": { "author": "DGriffin91", "author_email": "sgui@dgdigital.net", "bugtrack_url": null, "classifiers": [], "description": "# sgui\nA simple GUI library for Python\n\nCurrently, sgui is just simple a wrapper around [Tkinter](https://wiki.python.org/moin/TkInter). (Python's de-facto standard GUI) In the future, backends for other languages like [pyside2](http://wiki.qt.io/Qt_for_Python) may be added.\n\nsgui aims to be a simple and consistent tool for creating basic graphical user interfaces in python.\n\nsgui is currently under development. Basic usage of the library should not change much. But as it is still in early development, newer versions may break scripts written for older versions.\n\n[sgui on github](https://github.com/DGriffin91/sgui)\n\n### rot13 Code Example\n\n```python\nimport sgui, codecs\n\n#Update the rotatedTextBox when the normal text changes\ndef encode(textBox):\n\trotatedTextBox.string = codecs.encode(textBox.string, 'rot_13')\n\n#Start window\nwindow = sgui.Tk() \n\n#Vertical Layout frame\nmainBox = sgui.VBox(window)\n\nsgui.Label(mainBox, string = \"Normal Text:\") \nnormalTextBox = sgui.TextBox(mainBox, string = \"Some normal text\", command = encode)\n\nsgui.Label(mainBox, string = \"Rotated Text:\") \nrotatedTextBox = sgui.TextBox(mainBox)\n\nwindow.startGUI()\n```\n\n### Currently Supported Widgets\n* Textbox\n* Textentry\n* Button\n* Label\n* Checkbox\n* Listbox\n* Radiobuttons\n* Canvas\n* VBox\n* HBox\n\n##### Most widgets support:\n* `.string` for text manipulation\n* `.command` for call back function\n* `.enabled` can be True or False for enabling/disabling control\n* `.tooltip` for hover over tool tips\n\n##### For example:\n```python\nimport sgui\nwindow = sgui.Tk() \n\ndef foo(btn):\n\tprint(btn.string, \"foo!\")\n\ntestButton = sgui.Button(window) \ntestButton.string = \"I'm a button!\"\ntestButton.command = foo\ntestButton.enabled = False\ntestButton.tooltip = \"This button is disabled, it will never foo!\"\n\nwindow.startGUI()\n```\n\n##### `.string` and `.command` can be declared when the widget is created:\n```python\ntestButton = sgui.Button(window, string = \"I'm a button!\", command = foo) \n```\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/DGriffin91/sgui", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "sgui", "package_url": "https://pypi.org/project/sgui/", "platform": "", "project_url": "https://pypi.org/project/sgui/", "project_urls": { "Homepage": "https://github.com/DGriffin91/sgui" }, "release_url": "https://pypi.org/project/sgui/0.1.3/", "requires_dist": null, "requires_python": "", "summary": "A simple GUI library for Python", "version": "0.1.3" }, "last_serial": 4187492, "releases": { "0.1.2": [ { "comment_text": "", "digests": { "md5": "eabbf5fd2953863a0ca30dd028321f5b", "sha256": "640b0aaa7f2290a694e4270697a2248cd3659c7469128d3fce2f450b0b9b957e" }, "downloads": -1, "filename": "sgui-0.1.2.tar.gz", "has_sig": false, "md5_digest": "eabbf5fd2953863a0ca30dd028321f5b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4520, "upload_time": "2018-08-20T06:57:12", "url": "https://files.pythonhosted.org/packages/44/fd/6ee4b43e985fbe396941bed262a40dd090e63bd18cd03fd15673ca8f932e/sgui-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "bf7b7401d21888e94d47ae6eaed6eeca", "sha256": "e57b221cc20aace0507fc8777764708eebee63c1390643677586a586b88a9006" }, "downloads": -1, "filename": "sgui-0.1.3.tar.gz", "has_sig": false, "md5_digest": "bf7b7401d21888e94d47ae6eaed6eeca", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5083, "upload_time": "2018-08-20T08:08:21", "url": "https://files.pythonhosted.org/packages/57/5d/450b8b61113630ac7c98b742b08b57d24c95693d1825a11b855ffb47fee3/sgui-0.1.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "bf7b7401d21888e94d47ae6eaed6eeca", "sha256": "e57b221cc20aace0507fc8777764708eebee63c1390643677586a586b88a9006" }, "downloads": -1, "filename": "sgui-0.1.3.tar.gz", "has_sig": false, "md5_digest": "bf7b7401d21888e94d47ae6eaed6eeca", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5083, "upload_time": "2018-08-20T08:08:21", "url": "https://files.pythonhosted.org/packages/57/5d/450b8b61113630ac7c98b742b08b57d24c95693d1825a11b855ffb47fee3/sgui-0.1.3.tar.gz" } ] }