A small new package for easily using Tkinter.
Project description
Documentation ManagerTk
ManagerTk is a Python module that helps you create and manage a graphical user interface (GUI) for projects created with Tkinter. This module provides simple functions for working with windows, pages, and interface elements.
Download Package
pip install ManagerTk
Main Functions
coord_view(window, boolc) - Duplicates the window for viewing mouse coordinates (x, y) in the window and displays them in the terminal.
create_mpage(window, ui_page, size) - Creates the main page of the interface with the specified elements.
redirect_pages(page_ui_1, page_ui_2, side=None) - Allows you to switch between two interface pages by changing their contents.
window_exit(title: str, message: str) - Displays a window to confirm the exit from the program.
documentation() - Displays a link to the module documentation.
Tutorial for using
import tkinter as tk
from ManagerTk import *
window = tk.Tk()
window.title("ManagerTk Example")
main_page = [
tk.Label(text="Main Page"),
tk.Button(text="Go to Second Page", command=lambda: redirect_pages(main_page, second_page))
]
second_page = [
tk.Label(text="Second Page"),
tk.Button(text="Go to Main Page", command=lambda: redirect_pages(second_page, main_page))
]
create_mpage(window, main_page, "300x200")
window.mainloop()
This example creates a simple application with two pages that can be switched using buttons.
Support
telegram - @DK50503
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ManagerTk-0.1(r).tar.gz
(4.0 kB
view hashes)
Built Distribution
Close
Hashes for ManagerTk-0.1(r)-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f32069803d5feedf1dd864123ca84bdbaf1ed596247ac6392feff0358738fc0a |
|
MD5 | 7a52a43778b0003fb1d488e8ebf4475a |
|
BLAKE2b-256 | d57a7bed08f19ae3165ada14ec64b0cf2ae766710d93babec2acb8e7b7bc8f1f |