Skip to content

Commit c2bb5c2

Browse files
committed
Fixed dummy QT gui classes; added pyQT6 and pyqtgraph to optional dependencies
1 parent 55d7f3b commit c2bb5c2

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

pyidi/GUIs/__init__.py

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,12 @@
1212
from .result_viewer import ResultViewer
1313
else:
1414
class SelectionGUI:
15-
def __init__(self, video):
16-
pass
17-
18-
def show_displacement(self, data):
15+
def __init__(self, *args, **kwargs):
1916
raise RuntimeError("SelectionGUI requires PyQt6: pip install pyidi[qt]")
20-
17+
2118
class ResultViewer:
22-
def __init__(self):
23-
pass
24-
25-
def show_displacement(self, data):
19+
def __init__(self, *args, **kwargs):
2620
raise RuntimeError("ResultViewer requires PyQt6: pip install pyidi[qt]")
27-
21+
2822
from .selection import SubsetSelection
2923
from .gui import GUI

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ dev = [
4848
"nbsphinx_link",
4949
]
5050

51+
qt = [
52+
"pyqt6",
53+
"pyqtgraph",
54+
]
55+
5156
[project.urls]
5257
homepage = "https://github.com/ladisk/pyidi"
5358
documentation = "https://pyidi.readthedocs.io/en/latest/"

0 commit comments

Comments
 (0)