Metadata-Version: 2.1
Name: ManagerTk
Version: 0.1
Summary: A small new package for easily using Tkinter.
Author-email: "D.K. - DK404" <dk404.main@gmail.com>
Project-URL: Homepage, https://github.com/DK404-main/ManagerTk
Project-URL: Replit, https://replit.com/@DK404
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: License.txt

[![Downloads](https://static.pepy.tech/personalized-badge/managertk?period=month&units=international_system&left_color=black&right_color=brightgreen&left_text=Downloads)](https://pepy.tech/project/managertk)
#
# 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
```cmd
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
```python
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](https://t.me/DK50503)
