Metadata-Version: 2.1
Name: centerit
Version: 0.5
Summary: A library for centering python gui windows.
Home-page: https://github.com/MrinmoyHaloi/centerit
Author: Mrinmoy Haloi
Author-email: <mhedeetz.business@gmail.com>
License: UNKNOWN
Description: ![pypi](https://img.shields.io/pypi/wheel/centerit)
        ![Python-3.9.2|3.9.3|3.9.4|3.9.5](https://img.shields.io/badge/Python-3.9.2|3.9.3|3.9.4|3.9.5-blue) 
        ![platform win|linux](https://img.shields.io/badge/platform-win%20|%20linux-red)
        # 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.
        
Keywords: python,gui
Platform: UNKNOWN
Classifier: Development Status :: 1 - Planning
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: GNU General Public License v2 (GPLv2)
Classifier: Natural Language :: English
Classifier: Operating System :: Unix
Classifier: Operating System :: Microsoft :: Windows
Description-Content-Type: text/markdown
