m-you-tk 0.1.0__py3-none-any.whl → 0.1.2__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.
- m_you/__init__.py +15 -11
- m_you_tk-0.1.2.dist-info/METADATA +29 -0
- {m_you_tk-0.1.0.dist-info → m_you_tk-0.1.2.dist-info}/RECORD +6 -6
- m_you_tk-0.1.0.dist-info/METADATA +0 -10
- {m_you_tk-0.1.0.dist-info → m_you_tk-0.1.2.dist-info}/WHEEL +0 -0
- {m_you_tk-0.1.0.dist-info → m_you_tk-0.1.2.dist-info}/licenses/LICENSE +0 -0
- {m_you_tk-0.1.0.dist-info → m_you_tk-0.1.2.dist-info}/top_level.txt +0 -0
m_you/__init__.py
CHANGED
|
@@ -2,21 +2,25 @@ import ctypes
|
|
|
2
2
|
import os
|
|
3
3
|
import sys
|
|
4
4
|
|
|
5
|
-
#
|
|
6
|
-
#
|
|
7
|
-
|
|
5
|
+
# 1. Находим ПРАВИЛЬНЫЙ путь к файлу шрифта внутри установленного пакета
|
|
6
|
+
# __file__ указывает на текущий __init__.py, берем его папку и идем в assets
|
|
7
|
+
CURRENT_DIR = os.path.dirname(os.path.abspath(__file__))
|
|
8
|
+
font_path = os.path.join(CURRENT_DIR, "assets", "material.ttf")
|
|
9
|
+
|
|
10
|
+
def load_font():
|
|
11
|
+
if not os.path.exists(font_path):
|
|
12
|
+
return
|
|
8
13
|
|
|
9
|
-
if os.path.exists(font_path):
|
|
10
14
|
if sys.platform == "win32":
|
|
11
|
-
#
|
|
15
|
+
# Код для Windows
|
|
12
16
|
ctypes.windll.gdi32.AddFontResourceExW(font_path, 0x10, 0)
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
pass
|
|
17
|
+
else:
|
|
18
|
+
# Для Linux (Arch) шрифт обычно подгружается через Fontconfig
|
|
19
|
+
# Если ты используешь PIL (Pillow) для отрисовки иконок,
|
|
20
|
+
# нужно передавать полный путь font_path прямо в ImageFont.truetype()
|
|
21
|
+
pass
|
|
19
22
|
|
|
23
|
+
load_font()
|
|
20
24
|
# --- 2. ЭКСПОРТ КОМПОНЕНТОВ ---
|
|
21
25
|
# Это позволяет писать: from m_you import MaterialButton
|
|
22
26
|
from .button import MaterialButton
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: m-you-tk
|
|
3
|
+
Version: 0.1.2
|
|
4
|
+
Summary: Material You components for Tkinter
|
|
5
|
+
Author-email: logic-break <abibasqabiba@email.com>
|
|
6
|
+
Requires-Python: >=3.7
|
|
7
|
+
Description-Content-Type: text/markdown
|
|
8
|
+
License-File: LICENSE
|
|
9
|
+
Requires-Dist: Pillow>=9.0.0
|
|
10
|
+
Dynamic: license-file
|
|
11
|
+
|
|
12
|
+
# 🎨 M-YOU-TK
|
|
13
|
+
|
|
14
|
+
A modern Material You (Material Design 3) UI library for Tkinter with smooth LERP animations.
|
|
15
|
+
|
|
16
|
+
## 📖 Documentation
|
|
17
|
+
|
|
18
|
+
The full documentation for this library, including component references, installation guides, and code examples, is available in the **offline HTML documentation** file.
|
|
19
|
+
|
|
20
|
+
### 🚀 How to open:
|
|
21
|
+
1. Locate the `documentation.html` file in the root directory.
|
|
22
|
+
2. Double-click to open it in your preferred web browser.
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
## 🛠 Quick Installation
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
pip install m-you-tk
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
m_you/__init__.py,sha256=
|
|
1
|
+
m_you/__init__.py,sha256=YKytF0EbZ0zW-ilR9jSVbHWorsP0-_jACIUQ7EC8Hnc,1702
|
|
2
2
|
m_you/button.py,sha256=yGpWarwP9kzV6y5SatThmLuzcnZCozbW6tZQFo5hUus,2582
|
|
3
3
|
m_you/checkbox.py,sha256=EQ5JTlSy8Av0aLx6HahZaHc98PW7bwkIBjZHT8RdLtw,3979
|
|
4
4
|
m_you/dropdown.py,sha256=TtGu4dJI4rTF1kkLGw6936hFu6aa7qn9flPAYPAS2Es,7949
|
|
@@ -8,8 +8,8 @@ m_you/slider.py,sha256=2C5vBlYDew3mTNZ-_MPwLk17BRTS7jo8ub2aAS7l92Y,3930
|
|
|
8
8
|
m_you/switch.py,sha256=SzkQ18WCjeFCM4_8LDmFdKb60VmOv1dgse3qbfv9kFU,3266
|
|
9
9
|
m_you/toast.py,sha256=b7PgQ-jD2yu-bxt-LIcugVCO-ZJ5fYOc9jXAvlhkRVM,3152
|
|
10
10
|
m_you/assets/material.ttf,sha256=7xSfCL3S_wmk4shXNHa3sPP7sVtiOVSt5ZiZ5xdb7do,356840
|
|
11
|
-
m_you_tk-0.1.
|
|
12
|
-
m_you_tk-0.1.
|
|
13
|
-
m_you_tk-0.1.
|
|
14
|
-
m_you_tk-0.1.
|
|
15
|
-
m_you_tk-0.1.
|
|
11
|
+
m_you_tk-0.1.2.dist-info/licenses/LICENSE,sha256=TDKOBOHBEBuzqtr9pyXbQFHpn25BV_RXV8jtZn_6k9w,809
|
|
12
|
+
m_you_tk-0.1.2.dist-info/METADATA,sha256=e_7RBvISHAAQYGpQ1G9w1hbniDUHvbEXfmsm4lIAzjw,826
|
|
13
|
+
m_you_tk-0.1.2.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
14
|
+
m_you_tk-0.1.2.dist-info/top_level.txt,sha256=4nLhyeoOyjYFohyBd3kKqECvqrsYZ-qkzxE2RzZb2Qg,6
|
|
15
|
+
m_you_tk-0.1.2.dist-info/RECORD,,
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: m-you-tk
|
|
3
|
-
Version: 0.1.0
|
|
4
|
-
Summary: Material You components for Tkinter
|
|
5
|
-
Author-email: logic-break <abibasqabiba@email.com>
|
|
6
|
-
Requires-Python: >=3.7
|
|
7
|
-
Description-Content-Type: text/markdown
|
|
8
|
-
License-File: LICENSE
|
|
9
|
-
Requires-Dist: Pillow>=9.0.0
|
|
10
|
-
Dynamic: license-file
|
|
File without changes
|
|
File without changes
|
|
File without changes
|