Skip to main content

A small new package for easily using Tkinter.

Project description

Downloads

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


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)

Uploaded Source

Built Distribution

ManagerTk-0.1(r)-py3-none-any.whl (4.2 kB view hashes)

Uploaded

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page