pygui_simple 0.1.0__tar.gz → 0.2.0__tar.gz
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.
- {pygui_simple-0.1.0 → pygui_simple-0.2.0}/PKG-INFO +1 -1
- {pygui_simple-0.1.0 → pygui_simple-0.2.0}/pyproject.toml +33 -33
- {pygui_simple-0.1.0 → pygui_simple-0.2.0}/src/pygui_simple/tkcalendar.py +2 -2
- {pygui_simple-0.1.0 → pygui_simple-0.2.0}/src/pygui_simple/tkcontrol.py +1 -1
- {pygui_simple-0.1.0 → pygui_simple-0.2.0}/src/pygui_simple/tkmatplot.py +1 -1
- {pygui_simple-0.1.0 → pygui_simple-0.2.0}/src/pygui_simple/tkscrollpicker.py +2 -2
- {pygui_simple-0.1.0 → pygui_simple-0.2.0}/src/pygui_simple/tkslideswitch.py +2 -2
- {pygui_simple-0.1.0 → pygui_simple-0.2.0}/src/pygui_simple/tkwin.py +14 -8
- {pygui_simple-0.1.0 → pygui_simple-0.2.0}/src/pygui_simple/winbasic.py +1 -1
- {pygui_simple-0.1.0 → pygui_simple-0.2.0}/LICENSE +0 -0
- {pygui_simple-0.1.0 → pygui_simple-0.2.0}/README.md +0 -0
- {pygui_simple-0.1.0 → pygui_simple-0.2.0}/src/pygui_simple/__init__.py +0 -0
- {pygui_simple-0.1.0 → pygui_simple-0.2.0}/src/pygui_simple/cv2_utilities.py +0 -0
- {pygui_simple-0.1.0 → pygui_simple-0.2.0}/src/pygui_simple/py.typed +0 -0
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
[project]
|
|
2
|
-
name = "pygui_simple"
|
|
3
|
-
version = "0.
|
|
4
|
-
description = "A simple gui library"
|
|
5
|
-
readme = "README.md"
|
|
6
|
-
authors = [
|
|
7
|
-
{ name = "Youchee", email = "youchi.xu@live.com" }
|
|
8
|
-
]
|
|
9
|
-
requires-python = ">=3.13"
|
|
10
|
-
dependencies = [
|
|
11
|
-
"matplotlib>=3.10.8",
|
|
12
|
-
"opencv-python-headless>=4.13.0.92",
|
|
13
|
-
]
|
|
14
|
-
classifiers = [
|
|
15
|
-
"Programming Language :: Python :: 3",
|
|
16
|
-
"Operating System :: OS Independent",
|
|
17
|
-
]
|
|
18
|
-
license = "MIT"
|
|
19
|
-
license-files = ["LICEN[CS]E*"]
|
|
20
|
-
|
|
21
|
-
[project.urls]
|
|
22
|
-
Homepage = "https://github.com/YoucheeXu/pygui"
|
|
23
|
-
Issues = "https://github.com/YoucheeXu/pygui/issues"
|
|
24
|
-
|
|
25
|
-
[build-system]
|
|
26
|
-
requires = ["uv_build>=0.9.18,<0.10.0"]
|
|
27
|
-
build-backend = "uv_build"
|
|
28
|
-
|
|
29
|
-
[dependency-groups]
|
|
30
|
-
dev = [
|
|
31
|
-
"pytest>=9.0.2",
|
|
32
|
-
"pytest-cov>=7.1.0",
|
|
33
|
-
]
|
|
1
|
+
[project]
|
|
2
|
+
name = "pygui_simple"
|
|
3
|
+
version = "0.2.0"
|
|
4
|
+
description = "A simple gui library"
|
|
5
|
+
readme = "README.md"
|
|
6
|
+
authors = [
|
|
7
|
+
{ name = "Youchee", email = "youchi.xu@live.com" }
|
|
8
|
+
]
|
|
9
|
+
requires-python = ">=3.13"
|
|
10
|
+
dependencies = [
|
|
11
|
+
"matplotlib>=3.10.8",
|
|
12
|
+
"opencv-python-headless>=4.13.0.92",
|
|
13
|
+
]
|
|
14
|
+
classifiers = [
|
|
15
|
+
"Programming Language :: Python :: 3",
|
|
16
|
+
"Operating System :: OS Independent",
|
|
17
|
+
]
|
|
18
|
+
license = "MIT"
|
|
19
|
+
license-files = ["LICEN[CS]E*"]
|
|
20
|
+
|
|
21
|
+
[project.urls]
|
|
22
|
+
Homepage = "https://github.com/YoucheeXu/pygui"
|
|
23
|
+
Issues = "https://github.com/YoucheeXu/pygui/issues"
|
|
24
|
+
|
|
25
|
+
[build-system]
|
|
26
|
+
requires = ["uv_build>=0.9.18,<0.10.0"]
|
|
27
|
+
build-backend = "uv_build"
|
|
28
|
+
|
|
29
|
+
[dependency-groups]
|
|
30
|
+
dev = [
|
|
31
|
+
"pytest>=9.0.2",
|
|
32
|
+
"pytest-cov>=7.1.0",
|
|
33
|
+
]
|
|
@@ -8,8 +8,8 @@ import tkinter as tk
|
|
|
8
8
|
import tkinter.font as tkFont
|
|
9
9
|
from tkinter import ttk
|
|
10
10
|
|
|
11
|
-
from
|
|
12
|
-
from
|
|
11
|
+
from pygui_simple.winbasic import Dialog
|
|
12
|
+
from pygui_simple.tkcontrol import tkControl
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
class CalendarCtrl(tkControl):
|
|
@@ -9,8 +9,8 @@ from typing import override, cast
|
|
|
9
9
|
from typing import TypeAlias, Callable, Any
|
|
10
10
|
from typing import Generic, TypeVar
|
|
11
11
|
|
|
12
|
-
from
|
|
13
|
-
from
|
|
12
|
+
from pygui_simple.winbasic import Dialog
|
|
13
|
+
from pygui_simple.tkcontrol import tkControl
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
T = TypeVar("T", bound=int | str)
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import tkinter as tk
|
|
4
4
|
from typing import Callable, cast, override
|
|
5
5
|
|
|
6
|
-
from
|
|
7
|
-
from
|
|
6
|
+
from pygui_simple.winbasic import Dialog
|
|
7
|
+
from pygui_simple.tkcontrol import tkControl
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
class SlideSwitchCtrl(tkControl):
|
|
@@ -28,13 +28,13 @@ from PIL import ImageTk
|
|
|
28
28
|
from idlelib.statusbar import MultiStatusBar
|
|
29
29
|
from idlelib.tooltip import Hovertip
|
|
30
30
|
|
|
31
|
-
from
|
|
32
|
-
from
|
|
33
|
-
from
|
|
34
|
-
from
|
|
35
|
-
import
|
|
36
|
-
from
|
|
37
|
-
from
|
|
31
|
+
from pygui_simple.winbasic import EventHanlder, Widget, Container, Dialog, WinBasic
|
|
32
|
+
from pygui_simple.tkcontrol import tkControl
|
|
33
|
+
from pygui_simple.tkmatplot import MatPlotCtrl
|
|
34
|
+
from pygui_simple.tkslideswitch import SlideSwitchCtrl
|
|
35
|
+
import pygui_simple.cv2_utilities as cv2u
|
|
36
|
+
from pygui_simple.tkcalendar import CalendarCtrl
|
|
37
|
+
from pygui_simple.tkscrollpicker import ScrollPickerCtrl, TimeScrollPickerCtrl
|
|
38
38
|
|
|
39
39
|
IS_WINDOWS = platform.system() == "Windows"
|
|
40
40
|
|
|
@@ -340,10 +340,16 @@ class NotebookCtrl(tkControl):
|
|
|
340
340
|
|
|
341
341
|
# TODO: not fininsed
|
|
342
342
|
class FrameCtrl(tkControl):
|
|
343
|
-
def __init__(self, parent: tk.Misc, idself: str, **options):
|
|
343
|
+
def __init__(self, parent: tk.Misc, idself: str, columnconfigure: str = "", **options):
|
|
344
344
|
ctrl = tk.Frame(parent, **options)
|
|
345
345
|
tkControl.__init__(self, parent, "", idself, ctrl)
|
|
346
346
|
|
|
347
|
+
if columnconfigure:
|
|
348
|
+
lst = columnconfigure.strip('()').split(',')
|
|
349
|
+
colcfgs = tuple(int(x) for x in lst)
|
|
350
|
+
for i, wgh in enumerate(colcfgs):
|
|
351
|
+
_ = ctrl.columnconfigure(i, weight=wgh)
|
|
352
|
+
|
|
347
353
|
@override
|
|
348
354
|
def destroy(self):
|
|
349
355
|
# po(f"FrameCtrl {self._idself} destroy")
|
|
@@ -8,7 +8,7 @@ from typing import cast, Literal, Protocol, override
|
|
|
8
8
|
# from collections.abc import Callable, Mapping
|
|
9
9
|
from collections import OrderedDict
|
|
10
10
|
|
|
11
|
-
# from src.
|
|
11
|
+
# from src.pygui_simple.logit import pv, pe, po
|
|
12
12
|
|
|
13
13
|
# EventHanlder: TypeAlias = Callable[[tuple[Any, ...], dict[str, Any]], Any]
|
|
14
14
|
# EventHanlder: TypeAlias = Callable[[dict[str, Any]], Any]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|