tkinter-kit


Nametkinter-kit JSON
Version 0.1.1 PyPI version JSON
download
home_page
SummaryA package with some helpful tkinter functions! In this version, import tkinter_kit.func becomes simply import tkinter_kit.
upload_time2024-02-15 23:49:58
maintainer
docs_urlNone
author
requires_python>=3.8
licenseMIT License
keywords frame functions scroll tkinter window
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # TKinter-Kit 📦

This project aims to provide a rich set of helpful functions, to easily use the tkinter module, to have a better graphical user interface experience

## Features 💡

* It contains functions to easily interact with users as simple as the  print()  and input() functions
* It helps to manage scroll_bar easily
* It helps to have a better experience when printing 2D tables

## Examples of use 📝

```python
#!/usr/bin/env python3
# -*-coding:UTF-8 -*

import tkinter as tk
import tkinter_kit.func as tkk

# We create a main window
window = tk.Tk(className=" Test of tkinter_kit")

# We create a canvas and a frame to add a vertical scrollbar
canvas = tk.Canvas(window, width = 1000, height=830)
frame = tk.LabelFrame(canvas, width=1000, height=830, text="Test of tkinter_kit")
scrollbar = tkk.frame_vertical_scrollbar(window, canvas, frame)

# We create a label to display a message
tkk.print_window(frame, "Welcome to the test of tkinter_kit")

# We create an entry to ask the user's name
name = tkk.input_window(window, frame, "What is your name?")

# We create a label to display the user's name
tkk.print_window(frame, "Hello, " + name)

tkk.next_button(window, frame, text="Next")

# We create a list of data to display a table
Heading = ["Name", "Age", "City"]
Datas = [["Alice", 25, "Paris"], ["Bob", 30, "Lyon"], ["Charlie", 35, "Marseille"]]

# We create a label to display the title of the table
tkk.print_window(frame, "Here is a table of data")

# We create a table to display the data
tkk.print_table_windows(frame, Heading, Datas)

# We create a list of possible answers
RESPONSES = ["Yes", "No", "Maybe"]

# We create a label to display a question
tkk.print_window(frame, "Do you like Python?")

# We create radio buttons to display the possible answers
value = tk.StringVar()
button1 = tk.Radiobutton(frame, text="Yes", variable=value, value=RESPONSES[0])
button2 = tk.Radiobutton(frame, text="No", variable=value, value=RESPONSES[1])
button3 = tk.Radiobutton(frame, text="Maybe", variable=value, value=RESPONSES[2])
button1.pack()
button2.pack()
button3.pack()

# We create a button to validate the answer
tkk.next_button(window, frame, text="Validate")

# We create a label to display the user's answer
tkk.print_window(frame, "You answered: " + value.get())

# We create a button to quit the window
tkk.leave_window(window, frame, text="Quit")

```

We obtain this result :

![test_tkinter_kit](image/README/test_tkinter_kit.png)

## Author ✍️

This project was created by KpihX. You can contact me at kapoivha@gmail.com for any questions or suggestions.

## License 📄

This project is licensed under the MIT license - see the LICENSE file for more details.

: https://github.com/KpihX

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "tkinter-kit",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "KpihX <kapoivha@gmail.com>",
    "keywords": "frame,functions,scroll,tkinter,window",
    "author": "",
    "author_email": "KpihX <kapoivha@gmail.com>",
    "download_url": "",
    "platform": null,
    "description": "# TKinter-Kit \ud83d\udce6\n\nThis project aims to provide a rich set of helpful functions, to easily use the tkinter module, to have a better graphical user interface experience\n\n## Features \ud83d\udca1\n\n* It contains functions to easily interact with users as simple as the  print()  and input() functions\n* It helps to manage scroll_bar easily\n* It helps to have a better experience when printing 2D tables\n\n## Examples of use \ud83d\udcdd\n\n```python\n#!/usr/bin/env python3\n# -*-coding:UTF-8 -*\n\nimport tkinter as tk\nimport tkinter_kit.func as tkk\n\n# We create a main window\nwindow = tk.Tk(className=\" Test of tkinter_kit\")\n\n# We create a canvas and a frame to add a vertical scrollbar\ncanvas = tk.Canvas(window, width = 1000, height=830)\nframe = tk.LabelFrame(canvas, width=1000, height=830, text=\"Test of tkinter_kit\")\nscrollbar = tkk.frame_vertical_scrollbar(window, canvas, frame)\n\n# We create a label to display a message\ntkk.print_window(frame, \"Welcome to the test of tkinter_kit\")\n\n# We create an entry to ask the user's name\nname = tkk.input_window(window, frame, \"What is your name?\")\n\n# We create a label to display the user's name\ntkk.print_window(frame, \"Hello, \" + name)\n\ntkk.next_button(window, frame, text=\"Next\")\n\n# We create a list of data to display a table\nHeading = [\"Name\", \"Age\", \"City\"]\nDatas = [[\"Alice\", 25, \"Paris\"], [\"Bob\", 30, \"Lyon\"], [\"Charlie\", 35, \"Marseille\"]]\n\n# We create a label to display the title of the table\ntkk.print_window(frame, \"Here is a table of data\")\n\n# We create a table to display the data\ntkk.print_table_windows(frame, Heading, Datas)\n\n# We create a list of possible answers\nRESPONSES = [\"Yes\", \"No\", \"Maybe\"]\n\n# We create a label to display a question\ntkk.print_window(frame, \"Do you like Python?\")\n\n# We create radio buttons to display the possible answers\nvalue = tk.StringVar()\nbutton1 = tk.Radiobutton(frame, text=\"Yes\", variable=value, value=RESPONSES[0])\nbutton2 = tk.Radiobutton(frame, text=\"No\", variable=value, value=RESPONSES[1])\nbutton3 = tk.Radiobutton(frame, text=\"Maybe\", variable=value, value=RESPONSES[2])\nbutton1.pack()\nbutton2.pack()\nbutton3.pack()\n\n# We create a button to validate the answer\ntkk.next_button(window, frame, text=\"Validate\")\n\n# We create a label to display the user's answer\ntkk.print_window(frame, \"You answered: \" + value.get())\n\n# We create a button to quit the window\ntkk.leave_window(window, frame, text=\"Quit\")\n\n```\n\nWe obtain this result :\n\n![test_tkinter_kit](image/README/test_tkinter_kit.png)\n\n## Author \u270d\ufe0f\n\nThis project was created by KpihX. You can contact me at kapoivha@gmail.com for any questions or suggestions.\n\n## License \ud83d\udcc4\n\nThis project is licensed under the MIT license - see the LICENSE file for more details.\n\n: https://github.com/KpihX\n",
    "bugtrack_url": null,
    "license": "MIT License",
    "summary": "A package with some helpful tkinter functions! In this version, import tkinter_kit.func becomes simply import tkinter_kit.",
    "version": "0.1.1",
    "project_urls": {
        "Homepage": "https://pypi.org/project/tkinter-kit/",
        "Issues": "https://github.com/KpihX/tkinter_kit/issues",
        "Repository": "https://github.com/KpihX/tkinter_kit.git"
    },
    "split_keywords": [
        "frame",
        "functions",
        "scroll",
        "tkinter",
        "window"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a45fbdbf9c8864e24e6e7475e1efe9b32eed96ee97152be2beef137d652771ee",
                "md5": "5449b83c0c29b7cdd4dcd0a6fde7b3f8",
                "sha256": "565a106ca7e1709e328fc45ccaa741b6638906c61ad50f8e28011367fc4443cb"
            },
            "downloads": -1,
            "filename": "tkinter_kit-0.1.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "5449b83c0c29b7cdd4dcd0a6fde7b3f8",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 4490,
            "upload_time": "2024-02-15T23:49:58",
            "upload_time_iso_8601": "2024-02-15T23:49:58.549776Z",
            "url": "https://files.pythonhosted.org/packages/a4/5f/bdbf9c8864e24e6e7475e1efe9b32eed96ee97152be2beef137d652771ee/tkinter_kit-0.1.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-02-15 23:49:58",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "KpihX",
    "github_project": "tkinter_kit",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "tkinter-kit"
}
        
Elapsed time: 0.18570s