Name | tkintertoy JSON |
Version |
1.6.2
JSON |
| download |
home_page | |
Summary | A simple GUI package based on Tkinter |
upload_time | 2023-10-08 20:24:43 |
maintainer | |
docs_url | None |
author | |
requires_python | >=3.7 |
license | |
keywords |
gui
novice
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Tkintertoy
Tkintertoy was designed to be a easy to use GUI library based on Tkinter.
It was intended for novice programmers to develop GUIs with as little trouble as possible. However, more advanced programmers can reach the more complex features
of Tkinter easily. Here is a short example:
from tkintertoy import Window
# create the window
gui = Window()
gui.setTitle('My First Tkintertoy GUI!')
# add the widgets
gui.addEntry('name', 'Type in your name')
gui.addLabel('welcome', 'Welcome message')
gui.addButton('commands')
# plot the widgets
gui.plotxy('name', 0, 0)
gui.plotxy('welcome', 0, 1)
gui.plotxy('commands', 0, 2, pady=10)
# start the event processing loop
while True:
gui.waitforUser()
if gui.content:
gui.set('welcome', 'Welcome ' + gui.get('name'))
else:
break
This code will create a small window with an entry, label, and command button
widgets. The application will wait for the user to type in their first name.
After typing it in, and clicking on Ok, the application will display a welcome
label. The user exits the code by clicking on Cancel.
![Simple GUI](http://tkintertoy.readthedocs.io/en/master/_images/first.png)
As you can see in order to create a simple GUI, you create a window, add widgets,
plot the widgets in the desired location, and then call waitforUser.
While Tkintertoy was designed to be an GUI library for simple interfaces it
has been used in more complex code as well.
Using Tkintertoy, it is hoped that Python instructors can quickly move students
from boring command-line applications to useful standard GUIs. A tutorial with
many useful examples in included with the documentation.
Raw data
{
"_id": null,
"home_page": "",
"name": "tkintertoy",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": "",
"keywords": "GUI,novice",
"author": "",
"author_email": "Mike Callahan <mcalla@twc.com>",
"download_url": "https://files.pythonhosted.org/packages/ca/58/c9691044a5c1edd27720b5ac287dc66c1abb4138a92dccd2031504b8fd4f/tkintertoy-1.6.2.tar.gz",
"platform": null,
"description": "# Tkintertoy\r\n\r\nTkintertoy was designed to be a easy to use GUI library based on Tkinter.\r\nIt was intended for novice programmers to develop GUIs with as little trouble as possible. However, more advanced programmers can reach the more complex features\r\nof Tkinter easily. Here is a short example:\r\n\r\n from tkintertoy import Window\r\n # create the window\r\n gui = Window()\r\n gui.setTitle('My First Tkintertoy GUI!')\r\n # add the widgets\r\n gui.addEntry('name', 'Type in your name')\r\n gui.addLabel('welcome', 'Welcome message')\r\n gui.addButton('commands')\r\n # plot the widgets\r\n gui.plotxy('name', 0, 0)\r\n gui.plotxy('welcome', 0, 1)\r\n gui.plotxy('commands', 0, 2, pady=10)\r\n # start the event processing loop\r\n while True:\r\n gui.waitforUser()\r\n if gui.content:\r\n gui.set('welcome', 'Welcome ' + gui.get('name'))\r\n else:\r\n break\r\n \r\nThis code will create a small window with an entry, label, and command button\r\nwidgets. The application will wait for the user to type in their first name.\r\nAfter typing it in, and clicking on Ok, the application will display a welcome\r\nlabel. The user exits the code by clicking on Cancel.\r\n\r\n![Simple GUI](http://tkintertoy.readthedocs.io/en/master/_images/first.png)\r\n\r\nAs you can see in order to create a simple GUI, you create a window, add widgets,\r\nplot the widgets in the desired location, and then call waitforUser.\r\n\r\nWhile Tkintertoy was designed to be an GUI library for simple interfaces it\r\nhas been used in more complex code as well. \r\n\r\nUsing Tkintertoy, it is hoped that Python instructors can quickly move students\r\nfrom boring command-line applications to useful standard GUIs. A tutorial with\r\nmany useful examples in included with the documentation.\r\n \r\n",
"bugtrack_url": null,
"license": "",
"summary": "A simple GUI package based on Tkinter",
"version": "1.6.2",
"project_urls": {
"Documentation": "https://tkintertoy.readthedocs.io",
"Homepage": "https://github.com/mcalla314/tkintertoy"
},
"split_keywords": [
"gui",
"novice"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "154acd6cf121f340b386059a1161486367d2f9516e7325a3a5128ed521d27d7f",
"md5": "00bcc8cc80b8f27a929f08f039946381",
"sha256": "bad8306c909410501b49b592dcbc2d41fc5c7b5a90a64517d177ef61535a8ca0"
},
"downloads": -1,
"filename": "tkintertoy-1.6.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "00bcc8cc80b8f27a929f08f039946381",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 1603519,
"upload_time": "2023-10-08T20:24:41",
"upload_time_iso_8601": "2023-10-08T20:24:41.126879Z",
"url": "https://files.pythonhosted.org/packages/15/4a/cd6cf121f340b386059a1161486367d2f9516e7325a3a5128ed521d27d7f/tkintertoy-1.6.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "ca58c9691044a5c1edd27720b5ac287dc66c1abb4138a92dccd2031504b8fd4f",
"md5": "a26cd60e15e5a8387e25e45a162ece4e",
"sha256": "161cc72350e76abc6e232824ebd3a7eed992ebcb631292affcbb5ee705b69f4a"
},
"downloads": -1,
"filename": "tkintertoy-1.6.2.tar.gz",
"has_sig": false,
"md5_digest": "a26cd60e15e5a8387e25e45a162ece4e",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 1601029,
"upload_time": "2023-10-08T20:24:43",
"upload_time_iso_8601": "2023-10-08T20:24:43.765402Z",
"url": "https://files.pythonhosted.org/packages/ca/58/c9691044a5c1edd27720b5ac287dc66c1abb4138a92dccd2031504b8fd4f/tkintertoy-1.6.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-10-08 20:24:43",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "mcalla314",
"github_project": "tkintertoy",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "tkintertoy"
}