Skip to content

Commit 92e37f1

Browse files
authored
Merge pull request #71 from Integrated-Testing-Environment/dev
Dev
2 parents 2b81228 + 9017de7 commit 92e37f1

File tree

7 files changed

+47
-36
lines changed

7 files changed

+47
-36
lines changed

.idea/Python_JEAutoControl.iml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/workspace.xml

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

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@
1313
>> * Provide hooks for keyboard and mouse events and state checks (including using code to simulate key presses).
1414
>> * Can use keywords for development to improve readability.
1515
---
16+
17+
### NOTICE
18+
> We don't support Unix/Linux Wayland GUI Now \
19+
> May be future feature
20+
---
1621
### Features
1722

1823
>* Image Detect

dev.toml

Lines changed: 2 additions & 2 deletions
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.56"
9+
version = "0.0.57"
1010
authors = [
1111
{ name = "JE-Chen", email = "zenmailman@gmail.com" },
1212
]
@@ -36,4 +36,4 @@ classifiers = [
3636
"Homepage" = "https://github.com/JE-Chen/AutoControl"
3737

3838
[tool.setuptools.packages]
39-
find = { }
39+
find = { namespaces = false }

je_auto_control/utils/callback/callback_function_executor.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def callback_function(
114114
self,
115115
trigger_function_name: str,
116116
callback_function: typing.Callable,
117-
callback_function_param: dict,
117+
callback_function_param: [dict, None] = None,
118118
callback_param_method: str = "kwargs",
119119
**kwargs
120120
):
@@ -130,12 +130,15 @@ def callback_function(
130130
if trigger_function_name not in self.event_dict.keys():
131131
raise CallbackExecutorException(get_bad_trigger_function)
132132
execute_return_value = self.event_dict.get(trigger_function_name)(**kwargs)
133-
if callback_param_method not in ["kwargs", "args"]:
134-
raise CallbackExecutorException(get_bad_trigger_method)
135-
if callback_param_method == "kwargs":
136-
callback_function(**callback_function_param)
133+
if callback_function_param is not None:
134+
if callback_param_method not in ["kwargs", "args"]:
135+
raise CallbackExecutorException(get_bad_trigger_method)
136+
if callback_param_method == "kwargs":
137+
callback_function(**callback_function_param)
138+
else:
139+
callback_function(*callback_function_param.values())
137140
else:
138-
callback_function(*callback_function_param.values())
141+
callback_function()
139142
return execute_return_value
140143
except Exception as error:
141144
print(repr(error), file=stderr)

pyproject.toml

Lines changed: 2 additions & 2 deletions
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"
9-
version = "0.0.123"
9+
version = "0.0.124"
1010
authors = [
1111
{ name = "JE-Chen", email = "zenmailman@gmail.com" },
1212
]
@@ -36,4 +36,4 @@ classifiers = [
3636
"Homepage" = "https://github.com/JE-Chen/AutoControl"
3737

3838
[tool.setuptools.packages]
39-
find = { }
39+
find = { namespaces = false }

0 commit comments

Comments
 (0)