Skip to content
This repository was archived by the owner on Nov 22, 2025. It is now read-only.

Commit 2d43128

Browse files
Document and publish (#34)
* name is too long, so * ok * Update README.md
1 parent b68fa4e commit 2d43128

22 files changed

Lines changed: 22 additions & 73 deletions

README.md

Lines changed: 14 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -1,80 +1,29 @@
11
# _自定义标题栏_ _CustomTkinterTitlebar_
2-
![image](https://github.com/littlewhitecloud/CustomTkinterTitlebar/assets/71159641/30f7c785-d189-4865-8095-384259e9b419)
3-
4-
![image](https://user-images.githubusercontent.com/71159641/209783374-f5ea3613-eb65-4ec3-9462-0eb7883d3bf9.png)
5-
![image](https://user-images.githubusercontent.com/71159641/209128673-93a6f1db-66a6-4667-9bd7-a3c2ba096f5c.png)
62

73
### 📃 *这是一个项目可以帮助你拥有一个自定义的标题栏!小组件可以被放到这个标题栏里面* *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-
![image](https://user-images.githubusercontent.com/71159641/208231899-c25fa950-57f7-4a90-8095-cceadbf6d371.png)
15-
#### 自定义最大化最小化 Custom minsize & maxsize:
16-
![image](https://user-images.githubusercontent.com/71159641/209454983-ba0baa31-9c07-45be-8dff-47da76bf1dbf.png)
17-
![image](https://user-images.githubusercontent.com/71159641/209454984-e3698f89-9d0d-4be1-8af3-1ca78c1068dc.png)
18-
![image](https://user-images.githubusercontent.com/71159641/209454985-7d725083-dbcb-4856-88e4-200a34111938.png)
19-
![image](https://user-images.githubusercontent.com/71159641/209455001-f48c076a-cac0-4310-975e-0fb64855f4cd.png)
20-
#### 亮主题 Light Theme:
21-
![image](https://user-images.githubusercontent.com/71159641/210283863-53f46392-fe74-4d4f-8939-4b42f6e96c0b.png)
22-
![image](https://user-images.githubusercontent.com/71159641/210284157-a01117b5-2aae-44cf-89ce-be3ed027607f.png)
23-
#### 聚焦和未聚焦 Focus in & out:
24-
![image](https://user-images.githubusercontent.com/71159641/235348887-bfa21035-54b0-4021-8c93-4cb7d41ba11a.png)
25-
![image](https://user-images.githubusercontent.com/71159641/235348888-8fe2de5a-d5be-42ec-ba43-f983dd93c837.png)
26-
#### 云母 Mica:
27-
![image](https://user-images.githubusercontent.com/86362423/235428122-334d05c2-8927-4b44-bc03-ab0ac0f1687f.png)
28-
![image](https://user-images.githubusercontent.com/86362423/235428994-68c34c9d-1b30-4c9f-8a64-a6a760600726.png)
29-
#### 模糊 Blur:
30-
![image](https://user-images.githubusercontent.com/71159641/215318923-521c5efd-856b-42eb-aab8-02bc5ad4727e.png)
31-
#### 亚克力 Fluent :
32-
![image](https://user-images.githubusercontent.com/71159641/215318920-a5bce119-c343-40fd-b068-9ecbe444a60f.png)
33-
34-
### 🎰 样例 Example:
35-
https://github.com/littlewhitecloud/CustomTkinterTitlebar-Examples
36-
37-
### 📚 _*维基*_ _*Wiki*_:
38-
#### https://github.com/littlewhitecloud/CustomTkinterTitlebar/wiki/Script
394

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
656
```python
66-
from customtkintertitlebar import Tk
7+
from customtitlebar import CTT
678
from tkinter import ttk
68-
example = Tk()
9+
from sv_ttk import set_theme
10+
11+
example = CTT()
6912
example.title("TitleBar")
7013
example.geometry("1030x570")
14+
set_theme("dark")
7115
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+
7318
example.mainloop()
7419
```
7520

76-
### 💾 支持 Support:
77-
#### 它现在支持 Windows 10/11 32/64 位 It support Windows 10/11 32/64 bits now.
21+
### 预览 View:
22+
![image](https://github.com/littlewhitecloud/CustomTkinterTitlebar/assets/71159641/88c8b58e-95a1-42de-951f-384c214eb2c9)
23+
![image](https://github.com/littlewhitecloud/CustomTkinterTitlebar/assets/71159641/77ab75fc-57bf-4ab6-8510-c94d87c4d4e7)
24+
25+
### 🎰 样例 Example:
26+
https://github.com/littlewhitecloud/CustomTkinterTitlebar-Examples
7827

7928
感谢 @HuyHung1408花时间来在Windows11上测试它!
8029
Thanks @HuyHung1408 for testing it on windows 11!
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
from sys import platform
1010

11-
if platform != "win32": raise OSError("Platform isn't win32(Windows)")
11+
if platform != "win32":
12+
raise OSError("Platform isn't win32(Windows)")
1213

13-
from .titlebar import CTT
14+
from .titlebar import CTT
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)