Skip to content

Commit 271fddc

Browse files
committed
Add gui package
Add gui package
1 parent 3f458a3 commit 271fddc

File tree

7 files changed

+77
-22
lines changed

7 files changed

+77
-22
lines changed

.idea/misc.xml

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/workspace.xml

Lines changed: 40 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dev.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,6 @@ license-files = ["LICENSE"]
4545

4646
[tool.setuptools.packages]
4747
find = { namespaces = false }
48+
49+
[project.optional-dependencies]
50+
gui = ["Pyside6", "qt-material"]

je_auto_control/gui/__init__.py

Whitespace-only changes.

je_auto_control/gui/main_widget.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
from __future__ import annotations
2+
3+
from typing import TYPE_CHECKING
4+
5+
if TYPE_CHECKING:
6+
from je_auto_control.gui.main_window import AutoControlGUI
7+
8+
from PySide6.QtWidgets import QWidget, QGridLayout
9+
10+
11+
class AutoControlWidget(QWidget):
12+
13+
def __init__(self, main_ui: AutoControlGUI):
14+
super().__init__()
15+
self.main_ui = main_ui
16+
self.grid_layout = QGridLayout()
17+
self.setLayout(self.grid_layout)

je_auto_control/gui/main_window.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
from PySide6.QtWidgets import QMainWindow
2+
3+
from je_auto_control.gui.main_widget import AutoControlWidget
4+
5+
6+
class AutoControlGUI(QMainWindow):
7+
8+
def __init__(self):
9+
super().__init__()
10+
self.central_widget = AutoControlWidget(self)
11+
self.setCentralWidget(self.central_widget)

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,6 @@ license-files = ["LICENSE"]
4646

4747
[tool.setuptools.packages]
4848
find = { namespaces = false }
49+
50+
[project.optional-dependencies]
51+
gui = ["Pyside6", "qt-material"]

0 commit comments

Comments
 (0)