centerit-0.6
توضیحات
A library for centering python gui windows.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | Unix |
| نام فایل | centerit-0.6 |
| نام | centerit |
| نسخه کتابخانه | 0.6 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Mrinmoy Haloi |
| ایمیل نویسنده | <mhedeetz.business@gmail.com> |
| آدرس صفحه اصلی | https://github.com/MrinmoyHaloi/centerit |
| آدرس اینترنتی | https://pypi.org/project/centerit/ |
| مجوز | - |



# centerit
## A python library for centering the tkinter and PyQt windows.
You can use this library to center your Tkinter or PyQt windows both horizontally and vertically. That means your window will show in the middle of the screen.
### How to install
First clone the repository using
```bash
git clone https://github.com/MrinmoyHaloi/centerit
```
or [download](https://github.com/MrinmoyHaloi/centerit/archive/refs/heads/main.zip) as a zip file and extract it.
or pip install centerit
### How to use
import everything from the library using
`from centerit import *`
Then Call centertk for Tkinter
```python
centertk(root, width, height)
```
and centerqt for PyQt5
```python
centerqt(root, width, height)
```
You just have to pass the root window name and the dimensions you want for your root window.
I used python 3.9.5 to develop it. I test it out with python 3.9.2. I used windows 10 20H2 and parrot os 4.11.1(Debian Based) to test it. I will apreciate if someone test it out with other versions of python that is lower than 3.9.2. I will try to add support for other gui libraries in the future, Like wxPython, PyQt4, PySide2 etc.
نحوه نصب
نصب پکیج whl centerit-0.6:
pip install centerit-0.6.whl
نصب پکیج tar.gz centerit-0.6:
pip install centerit-0.6.tar.gz