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
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
titlebarctk-0.1.3.tar.gz
(88.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file titlebarctk-0.1.3.tar.gz.
File metadata
- Download URL: titlebarctk-0.1.3.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d001b3897997848836c75b85f13562b6913713a2e578c8b4c587c42dd7fc6895
|
|
| MD5 |
152b4f0a87cf7cd73ef37b13fd57c82b
|
|
| BLAKE2b-256 |
2843a45826ac4415a72edf3d472a688e3d464773f2cf3d00d1d45aa56f31dd05
|
File details
Details for the file titlebarctk-0.1.3-py3-none-any.whl.
File metadata
- Download URL: titlebarctk-0.1.3-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ee06f6ce2f4c567c80853bf9f238a92ffe5d002738dfa3dc09c182a4145acb0c
|
|
| MD5 |
14c49147b9b2dcc6da38d52d6c2f24c7
|
|
| BLAKE2b-256 |
8dc5af9a0016b3a3d61247e1d9da9bfd0702f1187e3a91c257d903e3293dec5a
|