📃 这是一个项目可以帮助你拥有一个自定义的标题栏!小组件可以被放到这个标题栏里面 This is a project can help you to have a custom titlebar! Widgets can add into titlebar!
关于更多这个项目,我写了一篇文章在Bilibili上,它很详细的说了这个项目 More about this project, I wrote an article on Bilibili, which talks about this project in more detail: https://www.bilibili.com/read/cv20558473
2023-04-15.11-38-37.mp4
https://github.com/littlewhitecloud/CustomTkinterTitlebar-Examples
你可以使用Pip来安装 You can use pip to install
pip install CustomTkinterTitlebar>=1.0.7.3
你也可以直接从github上下载原码或查看发布 You can also download the code from github or check the realase
- Windows 10
- Python >= 3.8.0
- Tcl/Tk >= 8.6.0
- Pillow >= 9.0.0
- darkdetect >= 0.8.0
- BlurWindow >= 1.2.1
python -m pip install --upgrade pip
pip install pillow --user
pip install darkdetect --user
pip install BlurWindow --user
或者只运行 Or just run
pip install CustomTkinterTitlebar --user
from customtkintertitlebar import Tk
from tkinter import ttk
example = Tk()
example.title("TitleBar")
example.geometry("1030x570")
en = ttk.Entry(example.titlebar)
en.pack(fill = Y, expand = True, ipadx = 30, pady = 5)
example.mainloop()
感谢 @HuyHung1408花时间来在Windows11上测试它! Thanks @HuyHung1408 for testing it on windows 11!