extra widgets for customtkinter
Project description
CustomTkinterX
customtkinter
的扩展组件功能库
Fluent主题
尚未完善设置,修改了CTk
CTkToplevel
CTkFrame
CTkButton
CTKEntry
CTkComboBox
等类。
from customtkinter import *
from customtkinterx import *
CTkFluentTheme()
CTkCustom 自定义窗口
原窗口因标题栏与边框的限制,导致界面效果极差,但是仍可以通过一些方法自定义窗口wm_overrideredirect
。
平台支持Windows
MacOS
Linux
,其中界面效果支持最好的是Windows
,MacOS
Linux
无法使用透明色,完全消除边框使用圆角,
及将图标保留至任务栏,采用置顶的方法保持窗口的显示。
组件结构
| CTkCustom -> CTk
|-->> __frame_border(mainframe): CTkFrame
|-->> __frame_title(titlebar): CTkFrame
|-->> __label_title(titlebar_title): CTkLabel
|-->> __button_close(titlebar_closebutton): CTkButton
|-->> __button_minimize(titlebar_minimizebutton): CTkButton
基础示例
from customtkinter import *
from customtkinterx import *
root = CTkCustom()
root.mainloop()
添加缩放窗口大小的手柄
CTKCustom.create_sizegrip()
from customtkinter import *
from customtkinterx import *
root = CTkCustom()
root.create_sizegrip()
root.mainloop()
CTkInfoBar 消息栏
组件结构
| CTkInforBar -> CTkFrame
|-->> __label_info(info): CTkLabel
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
customtkinterx-0.1.5.tar.gz
(6.0 kB
view hashes)
Built Distribution
Close
Hashes for customtkinterx-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87f95ff7294821715bf128f8c5a849239dfa4d27e0cb2ef08787f91cb413f304 |
|
MD5 | 2a198097633b407e7ee93895e67b8afc |
|
BLAKE2b-256 | a983dad238bd9b24b5bfb9ac5b1007546338f9fe342846489c34d628f6582727 |