|
1 | 1 | # _自定义标题栏_ _CustomTkinterTitlebar_ |
2 | | - |
3 | | - |
4 | | - |
5 | | - |
6 | 2 |
|
7 | 3 | ### 📃 *这是一个项目可以帮助你拥有一个自定义的标题栏!小组件可以被放到这个标题栏里面* *This is a project can help you to have a custom titlebar! Widgets can add into titlebar!* |
8 | | -#### _关于更多这个项目,我写了一篇文章在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 |
9 | | -#### 如果你喜欢它,请给颗星! leave a star if you like it! |
10 | | - |
11 | | -### 预览 View: |
12 | | -https://user-images.githubusercontent.com/71159641/232181268-cf20d227-d0bd-4840-9b31-fa3af150e4c8.mp4 |
13 | | -#### 插入组件 Insert component to titlebar: |
14 | | - |
15 | | -#### 自定义最大化最小化 Custom minsize & maxsize: |
16 | | - |
17 | | - |
18 | | - |
19 | | - |
20 | | -#### 亮主题 Light Theme: |
21 | | - |
22 | | - |
23 | | -#### 聚焦和未聚焦 Focus in & out: |
24 | | - |
25 | | - |
26 | | -#### 云母 Mica: |
27 | | - |
28 | | - |
29 | | -#### 模糊 Blur: |
30 | | - |
31 | | -#### 亚克力 Fluent : |
32 | | - |
33 | | - |
34 | | -### 🎰 样例 Example: |
35 | | -https://github.com/littlewhitecloud/CustomTkinterTitlebar-Examples |
36 | | - |
37 | | -### 📚 _*维基*_ _*Wiki*_: |
38 | | -#### https://github.com/littlewhitecloud/CustomTkinterTitlebar/wiki/Script |
39 | 4 |
|
40 | | -### 📥 下载 Download: |
41 | | -你可以使用Pip来安装 You can use pip to install |
42 | | -```batch |
43 | | -pip install CustomTkinterTitlebar>=1.0.7.3 |
44 | | -``` |
45 | | -你也可以直接从github上下载原码或查看发布 You can also download the code from github or check the realase |
46 | | -### 📦 依赖 Require: |
47 | | -> - _Windows 10_ |
48 | | -> - _Python >= 3.8.0_ |
49 | | -> - _Tcl/Tk >= 8.6.0_ |
50 | | -> - _Pillow >= 9.0.0_ |
51 | | -> - _darkdetect >= 0.8.0_ |
52 | | -> - _BlurWindow >= 1.2.1_ |
53 | | -```batch |
54 | | -python -m pip install --upgrade pip |
55 | | -pip install pillow --user |
56 | | -pip install darkdetect --user |
57 | | -pip install BlurWindow --user |
58 | | -``` |
59 | | -或者只运行 Or just run |
60 | | -```batch |
61 | | -pip install CustomTkinterTitlebar --user |
62 | | -``` |
63 | | - |
64 | | -### 📖 用法 Usage: |
| 5 | +### 快速开始 Quick Start |
65 | 6 | ```python |
66 | | -from customtkintertitlebar import Tk |
| 7 | +from customtitlebar import CTT |
67 | 8 | from tkinter import ttk |
68 | | -example = Tk() |
| 9 | +from sv_ttk import set_theme |
| 10 | + |
| 11 | +example = CTT() |
69 | 12 | example.title("TitleBar") |
70 | 13 | example.geometry("1030x570") |
| 14 | +set_theme("dark") |
71 | 15 | en = ttk.Entry(example.titlebar) |
72 | | -en.pack(fill = Y, expand = True, ipadx = 30, pady = 5) |
| 16 | +en.pack(fill = "y", expand = True, pady = 1) |
| 17 | + |
73 | 18 | example.mainloop() |
74 | 19 | ``` |
75 | 20 |
|
76 | | -### 💾 支持 Support: |
77 | | -#### 它现在支持 Windows 10/11 32/64 位 It support Windows 10/11 32/64 bits now. |
| 21 | +### 预览 View: |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | +### 🎰 样例 Example: |
| 26 | +https://github.com/littlewhitecloud/CustomTkinterTitlebar-Examples |
78 | 27 |
|
79 | 28 | 感谢 @HuyHung1408花时间来在Windows11上测试它! |
80 | 29 | Thanks @HuyHung1408 for testing it on windows 11! |
0 commit comments