Skip to main content

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.2

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)

Hidden Title Bar

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)

Hidden Maximize and Minimize Buttons

Hide/Unhide All Buttons or Stuffs

all_stuffs.hide(window) # hides close button
# all_stuffs.unhide(window)

Hide Everything

Tip: to hide the text set the window title to ''

Enable/Disable Maximize Button

maximize_button.disable(window) # hides maximize button
# MaximizeButton.enable(window)

Disabled Maximize Button

Enable/Disable Minimize Button

minimize_button.disable(window) # hides minimize button
# MinimizeButton.enable(window)

Disabled Minimize Button

Opacity

opacity.set(window, 0.5) # sets the window opacity to 50%
# opacity.set(window, 1) # resets the window opacity to 100%

Opacity 0.5 preview

Flashing Window

window_flash.flash(window, 10) # flashes the window 10 times
# window_flash.stop(window) # stops the flashing immediately

Flashing Window


hPyT Changelog

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


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.2.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

hPyT-1.1.2-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file hPyT-1.1.2.tar.gz.

File metadata

  • Download URL: hPyT-1.1.2.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

Hashes for hPyT-1.1.2.tar.gz
Algorithm Hash digest
SHA256 8cd728d94fe7b8abcc58c99e27cc61e3096aedd31d491673f9149fd928fc80d7
MD5 c988d225e28eab2e8c2d31e4d9ebd25c
BLAKE2b-256 d228c65c0c5f3646913c1deb53a50bfb6ffabaed36620102be7bbebc5dcfef35

See more details on using hashes here.

File details

Details for the file hPyT-1.1.2-py3-none-any.whl.

File metadata

  • Download URL: hPyT-1.1.2-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

Hashes for hPyT-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 63efd11caee6f8ff0b03a39b0311fe3f91feb2d72cc4a1ccae17f7e9570ee412
MD5 d50d9b3eb7740a9540706141a61c09e7
BLAKE2b-256 df4f74c943f9173f5dbee0deb094fd41e8d24927f0c7bdda3f89cb46afbea45c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page