tkfluent 0.1.1__py3-none-any.whl → 0.1.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- tkflu/__init__.py +3 -1
- tkflu/__main__.py +3 -1
- tkflu/button.py +195 -92
- tkflu/bwm.py +18 -10
- tkflu/demos/designer.py +33 -0
- tkflu/demos/grad2.py +10 -133
- tkflu/demos/grad3.py +7 -2
- tkflu/designs/__init__.py +1 -0
- tkflu/designs/animation.py +37 -0
- tkflu/designs/gradient.py +2 -0
- tkflu/designs/label.py +10 -0
- tkflu/designs/menubar.py +0 -3
- tkflu/designs/primary_color.py +5 -5
- tkflu/frame.py +24 -9
- tkflu/image.py +4 -0
- tkflu/label.py +35 -20
- tkflu/menu.py +1 -1
- tkflu/menubar.py +33 -21
- tkflu/text.py +34 -2
- tkflu/thememanager.py +7 -21
- tkflu/togglebutton.py +83 -84
- tkflu/tooltip.py +11 -6
- tkflu/toplevel.py +17 -1
- {tkfluent-0.1.1.dist-info → tkfluent-0.1.3.dist-info}/METADATA +13 -5
- {tkfluent-0.1.1.dist-info → tkfluent-0.1.3.dist-info}/RECORD +26 -23
- {tkfluent-0.1.1.dist-info → tkfluent-0.1.3.dist-info}/WHEEL +0 -0
tkflu/toplevel.py
CHANGED
@@ -18,12 +18,28 @@ class FluToplevel(Toplevel, BWm, DObject):
|
|
18
18
|
:param kwargs: 参照tkinter.TK.__init__
|
19
19
|
"""
|
20
20
|
|
21
|
+
Toplevel.__init__(self, *args, **kwargs)
|
22
|
+
|
21
23
|
self._init(mode)
|
22
24
|
|
23
25
|
self.custom = False
|
24
26
|
|
25
|
-
|
27
|
+
# 设置窗口图标
|
28
|
+
from .icons import light
|
29
|
+
from tkinter import PhotoImage
|
30
|
+
self.iconphoto(False, PhotoImage(file=light()))
|
26
31
|
|
27
32
|
self.bind("<Configure>", self._event_configure, add="+")
|
28
33
|
self.bind("<Escape>", self._event_key_esc, add="+")
|
29
34
|
self.protocol("WM_DELETE_WINDOW", self._event_delete_window)
|
35
|
+
|
36
|
+
def theme(self, mode: str):
|
37
|
+
super().theme(mode)
|
38
|
+
self._mode = mode
|
39
|
+
for widget in self.winfo_children():
|
40
|
+
if hasattr(widget, "theme"):
|
41
|
+
widget.theme(mode=mode)
|
42
|
+
if hasattr(widget, "_draw"):
|
43
|
+
widget._draw()
|
44
|
+
if hasattr(widget, "update_children"):
|
45
|
+
widget.update_children()
|
@@ -1,9 +1,9 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: tkfluent
|
3
|
-
Version: 0.1.
|
4
|
-
Summary: Fluent Design for Tkinter
|
3
|
+
Version: 0.1.3
|
4
|
+
Summary: Fluent(SunValley) Design for Tkinter. Modern GUI
|
5
5
|
License: GPL-3.0
|
6
|
-
Keywords: tkfluent,tksvg,tkinter,fluent,modern,
|
6
|
+
Keywords: tkfluent,tksvg,tkinter,fluent,modern,GUI,interface
|
7
7
|
Author: XiangQinxi
|
8
8
|
Author-email: xiangqinxi@outlook.com
|
9
9
|
Requires-Python: >=3.8,<4.0
|
@@ -27,10 +27,10 @@ Classifier: Programming Language :: Python :: 3.13
|
|
27
27
|
Classifier: Programming Language :: Tcl
|
28
28
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
29
29
|
Requires-Dist: easydict (>=1.13,<2.0)
|
30
|
-
Requires-Dist: numpy
|
30
|
+
Requires-Dist: numpy
|
31
31
|
Requires-Dist: pillow (>=10.2.0,<11.0.0)
|
32
32
|
Requires-Dist: svgwrite (>=1.4.3,<2.0.0)
|
33
|
-
Requires-Dist: tkdeft (
|
33
|
+
Requires-Dist: tkdeft (==0.0.9)
|
34
34
|
Requires-Dist: tkextrafont (>=0.6.3,<0.7.0)
|
35
35
|
Requires-Dist: tksvg (>=0.7.4,<0.8.0)
|
36
36
|
Project-URL: Documentation, https://tkfluent.netlify.app
|
@@ -44,10 +44,18 @@ Description-Content-Type: text/markdown
|
|
44
44
|

|
45
45
|

|
46
46
|
|
47
|
+
## 文档
|
48
|
+
请查阅[tkfluent文档网站](https://tkfluent.netlify.app/)。
|
49
|
+
使用`mkdocs`和`mkdocs-material`构建,由`netlify`部署
|
50
|
+
|
51
|
+
## 贡献者
|
52
|
+
1. [真_人工智障](https://github.com/TotoWang-hhh)
|
53
|
+
|
47
54
|
## 依赖图
|
48
55
|
```bash
|
49
56
|
PS .\tkfluent> poetry show --tree
|
50
57
|
easydict 1.13 Access dict values as attributes (works recursively).
|
58
|
+
numpy 1.24.4 Fundamental package for array computing in Python
|
51
59
|
pillow 10.4.0 Python Imaging Library (Fork)
|
52
60
|
svgwrite 1.4.3 A Python library to create SVG drawings.
|
53
61
|
tkdeft 0.0.9 使用tkinter+tksvg开发的现代化界面库
|
@@ -1,8 +1,8 @@
|
|
1
|
-
tkflu/__init__.py,sha256=
|
2
|
-
tkflu/__main__.py,sha256=
|
1
|
+
tkflu/__init__.py,sha256=2h8-989xFYDdt2BAxVn0_6jkfq96Hy-0MfZnjm4Bacc,1013
|
2
|
+
tkflu/__main__.py,sha256=QCVBJeyYGwtiMvS8wArcJrW8KL169w7wwXEBkjloGeM,3303
|
3
3
|
tkflu/badge.py,sha256=p9kY-JbsDraohNg2ZJMk3xA4PS9LEKxFpaSGX_NgHBw,5836
|
4
|
-
tkflu/button.py,sha256=
|
5
|
-
tkflu/bwm.py,sha256=
|
4
|
+
tkflu/button.py,sha256=N6wvcNNsqVf_Rb0c1ZOw3JpXqJcR9QJAFvjl2aaQXPw,19263
|
5
|
+
tkflu/bwm.py,sha256=6N4fLxnMIAFVXdNriBk-88-rmCVu0j245zAjYA6Bq-k,8233
|
6
6
|
tkflu/checkbox.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
7
7
|
tkflu/constants.py,sha256=VX3NcSzdOqelK3IRM-fK_RKBHV26d8AgJMuP-8hqCsA,488
|
8
8
|
tkflu/customwindow.py,sha256=Fr4CF0vKwj36tYzgX9_5F7OwcD59z9LfOW20Ugm2Hxc,3761
|
@@ -11,12 +11,14 @@ tkflu/defs.py,sha256=pKVQUm-dK12QiU2MMFD7sxoiXfhEsezN_uAV6eE5Cbk,1144
|
|
11
11
|
tkflu/demos/__init__.py,sha256=0IV8vUG2kAp90bbRXGj7Mte2ABXrZ_rzIyZxmB1fGLY,102
|
12
12
|
tkflu/demos/acrylic1.py,sha256=-1SniTxrQeAYz6VSxHu7UsAmZeSIBaElgC2KYVVAghU,423
|
13
13
|
tkflu/demos/demo1.py,sha256=xR4a1qOrzxHXhVFlluTjp9izo7sO_YFbS_BGZj1LbZs,112
|
14
|
+
tkflu/demos/designer.py,sha256=EI40war1G_XuXBrf9qKK0FJVGfS_WSsCwVBTSWxveeY,961
|
14
15
|
tkflu/demos/grad.py,sha256=neRGPq7VkGEzzUJymNdBi7EYI55wMes-OX3l-DQSonA,2195
|
15
|
-
tkflu/demos/grad2.py,sha256=
|
16
|
-
tkflu/demos/grad3.py,sha256=
|
16
|
+
tkflu/demos/grad2.py,sha256=2ZixYVCaqWoWxTqYD4p6x9Sz7VUT3KCeQDNzOX0aAkI,442
|
17
|
+
tkflu/demos/grad3.py,sha256=vJQ70C0amAJMbDvudOvHBqwb59SuXoWDCk7QovFuFts,441
|
17
18
|
tkflu/demos/test.py,sha256=DMontyt61qq4ULVExSrHA9tbQlXHH_KSkQPv1EV8TEk,153
|
18
19
|
tkflu/demos/tooltip.py,sha256=_tTIUuVo8x9YpdikPLxTvbB3wF1vb-JKppVDgzHXj2k,286
|
19
|
-
tkflu/designs/__init__.py,sha256=
|
20
|
+
tkflu/designs/__init__.py,sha256=hInKU8QJyosjgy59Oy8BekGPP7bTvQf4t_5jR_y6zx0,240
|
21
|
+
tkflu/designs/animation.py,sha256=NMiSwMlQob95n8LoiyTi-ShmAqIllTWqr1DtGlkjoXU,1185
|
20
22
|
tkflu/designs/badge.py,sha256=SVwDrQPltscB7YDvw5qhPdepKy1S-pcdD6OyYfonwzQ,1463
|
21
23
|
tkflu/designs/button.py,sha256=yEKRrH5dcDQCaGGqsYRnKgaCPSSd8cU__31LOQf2JX0,12274
|
22
24
|
tkflu/designs/design.py,sha256=RZNNzSl89BE7nFvOPThuzYKhONBZc76DMfYvHJ-pJWc,751
|
@@ -24,32 +26,33 @@ tkflu/designs/entry.py,sha256=iUilCpOl_zs_PbklIWhKWkkaZGQbt0bCprrZwhE3CEs,5060
|
|
24
26
|
tkflu/designs/fonts/__init__.py,sha256=lKvu4DKjRaWNczHas_YJZNx_LVr9tt3W_kFkJJRju0Q,642
|
25
27
|
tkflu/designs/fonts/segoeui.ttf,sha256=dPKz0MIM9zgOsSGgn9fN_cHM3RKgDbg8rsD-tItNufc,975088
|
26
28
|
tkflu/designs/frame.py,sha256=ypv5DilK1ZAsbGIzPIBPQFRrnfC7XtFYpvUFmUd6hdg,1167
|
27
|
-
tkflu/designs/gradient.py,sha256=
|
28
|
-
tkflu/designs/
|
29
|
-
tkflu/designs/
|
29
|
+
tkflu/designs/gradient.py,sha256=f5_FiWfYYfQ_obAj1n2qtNKWvxfC1wCOIONozNa27xs,2017
|
30
|
+
tkflu/designs/label.py,sha256=0uNOWxlGvpbeAh5NLb_ZTyyDTznW8i32rLXkVBkC19M,218
|
31
|
+
tkflu/designs/menubar.py,sha256=bi8OfDjJAhjRHPRfJmyVQcr7SZsScypdrCXEw8WxStA,215
|
32
|
+
tkflu/designs/primary_color.py,sha256=TKhGFX8jtFPQYmEV2f0Yq9jMuy0KG3ewTtsOBa1eds4,746
|
30
33
|
tkflu/designs/slider.py,sha256=1JsWvE8tQ6oI3vfS7iDMlES17n6ri8q9D2ym456i5CY,7800
|
31
34
|
tkflu/designs/text.py,sha256=YMJR2eGE7lFIZPYrT7p8QBD3zRH4NaVWhrL1dOb6vJ4,5059
|
32
35
|
tkflu/designs/tooltip.py,sha256=OFUIO9-EMNjapF9zC5PuLW26HFGib-p800hNIxaWT5Q,442
|
33
36
|
tkflu/designs/window.py,sha256=XHMvT0lVsJSeUApMf_bf9ipLSWT-BirkOiiUnVx-N48,625
|
34
37
|
tkflu/entry.py,sha256=b4kblEEmZRqtuDM2E5_hhb_8MhTgujbwTNP7aICB6qM,10852
|
35
|
-
tkflu/frame.py,sha256=
|
38
|
+
tkflu/frame.py,sha256=oMy6fZcDfoYEZsGnKw23wlMAlojckavs7X6JbB8OQpw,11631
|
36
39
|
tkflu/icons.py,sha256=Xzrc9WzexncYEPXqnVg3ywWv_7kLZLyYC5WtaRv30PQ,7129
|
37
|
-
tkflu/image.py,sha256=
|
38
|
-
tkflu/label.py,sha256=
|
40
|
+
tkflu/image.py,sha256=w5CbUBsn5KG8EekLwMyXC5T0w6E_dlP8tlKjnut9194,58
|
41
|
+
tkflu/label.py,sha256=pt_xmL5cdrVwOMDGdbGdQKCwiCnsGp3OpMAG57Ow8Mw,2824
|
39
42
|
tkflu/listbox.py,sha256=gD_oNNWVZtm5qXQ8bVBNRqJL6CGiIYtvhxztM9huzew,9991
|
40
43
|
tkflu/litenav.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
41
|
-
tkflu/menu.py,sha256=
|
42
|
-
tkflu/menubar.py,sha256=
|
44
|
+
tkflu/menu.py,sha256=j15DzZuWGsG_xMvsDh7XfO-aV6zlF9AhzHN2rdjwQLU,3263
|
45
|
+
tkflu/menubar.py,sha256=MrqUzH5Znv92IkDGnZa4MEYZkH9ynfMzPNdx0JpQQwU,6145
|
43
46
|
tkflu/popupmenu.py,sha256=dRwuFK7PKSYXiLhzrrzjKXTjtLfr7vh0KDvJIUjDetg,1592
|
44
47
|
tkflu/popupwindow.py,sha256=OVDjW3g5oKeFy82SLz7XiNC2hy8RKeQGW2l0yBKezIs,1010
|
45
48
|
tkflu/scrollbar.py,sha256=1hbu5n1mx4KyiF_M3sohpJJPux1zu5Jlw9V6LfQQs1Y,7293
|
46
49
|
tkflu/slider.py,sha256=B29fNA0rGSWEdetFfwLEdNhYyprHEm9FCqU3Vpp08Sw,16114
|
47
|
-
tkflu/text.py,sha256=
|
48
|
-
tkflu/thememanager.py,sha256=
|
49
|
-
tkflu/togglebutton.py,sha256=
|
50
|
-
tkflu/tooltip.py,sha256=
|
51
|
-
tkflu/toplevel.py,sha256=
|
50
|
+
tkflu/text.py,sha256=OpGySgIpATrSR95cyhE-OTbtkBmQ3Eqqlw8DqVtioXI,12725
|
51
|
+
tkflu/thememanager.py,sha256=2Vrkg0OEeTpwz0WU89IQCuN6VfhoUjI_N8vwth-W20A,1938
|
52
|
+
tkflu/togglebutton.py,sha256=WWx6iFuNzvv8_1ujXEN2MwoHgo3itZHnVpeQeO6gqqQ,20355
|
53
|
+
tkflu/tooltip.py,sha256=JDSqa2Q4kJmlnY5fu9kR0dlcexwvQoscomiaxw7BGQg,5163
|
54
|
+
tkflu/toplevel.py,sha256=dPrnhHTiciJtrlsh5oZNuv77Q-YCRK6OgQQ0mrhfTeo,1382
|
52
55
|
tkflu/window.py,sha256=2LjgL2KZIAYA04fXWQvfiNMYj_PKzlpSuEZrR94qHAs,1483
|
53
|
-
tkfluent-0.1.
|
54
|
-
tkfluent-0.1.
|
55
|
-
tkfluent-0.1.
|
56
|
+
tkfluent-0.1.3.dist-info/METADATA,sha256=GomtMRLj71TsxHwvOo4oE8rHH7WGBHGk0WlPr2QOZ_M,38223
|
57
|
+
tkfluent-0.1.3.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
58
|
+
tkfluent-0.1.3.dist-info/RECORD,,
|
File without changes
|