Hack Python Titlebar - A package to manipulate window titlebar in GUI applications made using python.
Project description
hPyT - Hack Python Titlebar
A package to manipulate window titlebar in GUI applications. Supports Both Windows 11 and 10
https://github.com/Zingzy/hPyT/assets/90309290/cf361814-dacc-4704-8828-3d1ad83c6485
You can download the above app from the github releases to test out the package before installing/using it in your projects
Supported Libraries
- Tkinter & CustomTkinter
- PyQt
- PySide
- WxPython
- support for more libraries soon...
Installing
pip install hPyT==1.1.3
Importing
from hPyT import *
from customtkinter import * # you can use any other library from the above mentioned list
window = CTk()
Hide/Unhide Title Bar
title_bar.hide(window) # hides full titlebar
# title_bar.unhide(window)
Hide/Unhide both Maximize and Minimize Buttons (Completely Hides both buttons)
maximize_minimize_button.hide(window) # hides both maximize and minimize button
# maximize_minimize_button.unhide(window)
Hide/Unhide All Buttons or Stuffs
all_stuffs.hide(window) # hides close button
# all_stuffs.unhide(window)
Tip: to hide the text set the window title to ''
Enable/Disable Maximize Button
maximize_button.disable(window) # hides maximize button
# MaximizeButton.enable(window)
Enable/Disable Minimize Button
minimize_button.disable(window) # hides minimize button
# MinimizeButton.enable(window)
Opacity
opacity.set(window, 0.5) # sets the window opacity to 50%
# opacity.set(window, 1) # resets the window opacity to 100%
Flashing Window
window_flash.flash(window, 10, 100) # flashes the window 10 times with 50ms interval
# window_flash.stop(window) # stops the flashing immediately
Flashing Interval starts from 10ms, default 1000ms
hPyT Changelog
v1.1.3
- Add flashing inverval support
v1.1.2
- Add window flashing support
- Add window opacity support
- Add support for PyGTK
v1.1.1
- Add support for WxPython, PyQt and PySide
v1.1.0
- Initial Release
© zingzy . 2024
All Rights Reserved
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
hPyT-1.1.3.tar.gz
(4.5 kB
view details)
Built Distribution
hPyT-1.1.3-py3-none-any.whl
(4.9 kB
view details)
File details
Details for the file hPyT-1.1.3.tar.gz
.
File metadata
- Download URL: hPyT-1.1.3.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0fb91f969f4d51e97e0abeb569c5d125896f34646c9d940ddb566dc5f82ddc54 |
|
MD5 | b8acc22802a4f7ba9c20c3eb88ea0ecf |
|
BLAKE2b-256 | b2348a600995d9daa51af19fcb430513db9b46c19950b339565bd2cad3f15272 |
File details
Details for the file hPyT-1.1.3-py3-none-any.whl
.
File metadata
- Download URL: hPyT-1.1.3-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 977340386a4f222a0c6ea40b4984b39e94091001166f1df52d41ef224c9d95ea |
|
MD5 | c074b672a1059d016494a72a221f8f22 |
|
BLAKE2b-256 | be13183e113328ac0ef56add0394e51491b12948a85467b9946c9f7b921b3ee8 |