Skip to content

Commit 709dd15

Browse files
authored
Merge pull request #139 from Integration-Automation/dev
Dev
2 parents cb96f76 + d34bc1b commit 709dd15

13 files changed

+125
-20
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: 34 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dev.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
66

77
[project]
88
name = "je_auto_control_dev"
9-
version = "0.0.97"
9+
version = "0.0.98"
1010
authors = [
1111
{ name = "JE-Chen", email = "[email protected]" },
1212
]
@@ -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"]

dev_requirements.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@ je_auto_control_dev
22
wheel
33
twine
44
sphinx
5-
sphinx-rtd-theme
5+
sphinx-rtd-theme
6+
Pyside6
7+
qt-material

exe/je_driver_icon.ico

4.19 KB
Binary file not shown.

exe/start_autocontrol_gui.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from je_auto_control import start_autocontrol_gui
2+
3+
start_autocontrol_gui()

je_auto_control/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@
104104
# import screen
105105
from je_auto_control.wrapper.auto_control_screen import screen_size
106106
from je_auto_control.wrapper.auto_control_screen import screenshot
107-
107+
# GUI
108+
from je_auto_control.gui.main_window import start_autocontrol_gui
108109
__all__ = [
109110
"click_mouse", "mouse_keys_table", "get_mouse_position", "press_mouse", "release_mouse",
110111
"mouse_scroll", "set_mouse_position", "special_mouse_keys_table",
@@ -120,4 +121,5 @@
120121
"generate_html", "generate_html_report", "generate_json", "generate_json_report", "generate_xml",
121122
"generate_xml_report", "get_dir_files_as_list", "create_project_dir", "start_autocontrol_socket_server",
122123
"callback_executor", "package_manager", "get_special_table", "ShellManager", "default_shell_manager",
124+
"start_autocontrol_gui"
123125
]

je_auto_control/__main__.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@ def preprocess_execute_files(file_path: str):
2525

2626

2727
def preprocess_read_str_execute_action(execute_str: str):
28-
execute_str = json.loads(execute_str)
28+
if sys.platform in ["win32", "cygwin", "msys"]:
29+
json_data = json.loads(execute_str)
30+
execute_str = json.loads(json_data)
31+
else:
32+
execute_str = json.loads(execute_str)
2933
execute_action(execute_str)
3034

3135

je_auto_control/gui/__init__.py

Whitespace-only changes.

je_auto_control/gui/main_widget.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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+
# Variable
16+
self.main_ui = main_ui
17+
# UI component
18+
# Grid layout
19+
self.grid_layout = QGridLayout()
20+
self.setLayout(self.grid_layout)

0 commit comments

Comments
 (0)