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
git clone https://github.com/MrinmoyHaloi/centerit
or download 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
centertk(root, width, height)
and centerqt for PyQt5
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.
Metadata
Release files for centerit 0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| centerit-0.6.tar.gz | 9.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| centerit-0.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 19.1 kB
Release files / centerit-0.6.tar.gz
| Download URL | centerit-0.6.tar.gz |
|---|---|
| Size | 9.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6fef7217ef063c895f4098c2592e67fcd128ef46975a95371b8c9fafbf0a5930
|
|
BLAKE2b-256 checksum How to use checksums |
9ea7503e16eccb830e20e70f45107e4ab1f42f7c15599c55c8ffe2e7d7f6a72e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5
|
Release files / centerit-0.6-py3-none-any.whl
| Download URL | centerit-0.6-py3-none-any.whl |
|---|---|
| Size | 9.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
61d8cbbd56a88445da58d236ede37345df493217e934eb30b55692c9c4938a2e
|
|
BLAKE2b-256 checksum How to use checksums |
3d7a2c57693e5eb534f24fdcd89b414143a39075f87aebce18f7afb0072c8f8a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5
|