Skip to main content

Create a custom title bar for a windows app developed with custom tkinter

Project description

pip install titlebarctk


Create a custom title bar for a windows app developed with custom tkinter.

--------------------------------------------------
import titlebarctk as tb
import customtkinter as ctk

def save_like_this():
print("Saving file")

def change_text():
window_frame.titlebar_text_variable.set("Goodbye, World!")

root = ctk.CTk()

window_frame = tb.TitleBar(root,
height = 20,
non_maximised_width=1600,
non_maximised_height=900,
save_function=save_like_this,
title="Eat my dolphin shorts",
font=("helvetica", 20),
fg_color=["#ffffff", "#000000"],
start_fullscreen=False,
icon_path="path_to_icon.ico",
text_variable="Hello, World!")

window_frame.pack(side="top", fill="x")

root.after(2000, change_text)

root.mainloop()
--------------------------------------------------

Windows 10
Python 3

Install requires:
- pywin32 306, url: https://pypi.org/project/pywin32/
- screeninfo 0.8.1, url: https://pypi.org/project/screeninfo/
- PIL 10.2.0, url: https://pypi.org/project/pillow/
- customtkinter 0.3, url: https://pypi.org/project/customtkinter/0.3/, url: https://customtkinter.tomschimansky.com/

--------------------------------------------------

GitHub url: https://github.com/DevDolphin7/TitleBar
PyPI url: https://pypi.org/project/titlebarctk/
Get in contact: DevDolphin7@outlook.com

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

titlebarctk-0.1.4.tar.gz (88.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

titlebarctk-0.1.4-py3-none-any.whl (90.4 kB view details)

Uploaded Python 3

File details

Details for the file titlebarctk-0.1.4.tar.gz.

File metadata

  • Download URL: titlebarctk-0.1.4.tar.gz
  • Upload date:
  • Size: 88.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.6

File hashes

Hashes for titlebarctk-0.1.4.tar.gz
Algorithm Hash digest
SHA256 64e6b73b8b2f3c025ce652d2faf20c2a06fafc1b91f62dab89ddcf2515e1a757
MD5 38a395feca305185d9e3af55cdabda89
BLAKE2b-256 98665513d4398d618134b34c3bd65d2924f6e81cbaba8f0b810c0877f4c46ee8

See more details on using hashes here.

File details

Details for the file titlebarctk-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: titlebarctk-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 90.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.6

File hashes

Hashes for titlebarctk-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c20d770dd4af6843e2ada421bb05e294c8ef0c843bada149447d829d373a5497
MD5 f2eb8c8fcc60adcf5c9f8e7a0581dafb
BLAKE2b-256 32e087783b097919536fd75a0bcd5f0bd6a6d6c152b8277dd417ac01ae0cc48e

See more details on using hashes here.

Supported by

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