|
5 | 5 | from je_auto_control.utils.exception.exception_tag import linux_import_error |
6 | 6 | from je_auto_control.utils.exception.exception_tag import listener_error |
7 | 7 |
|
8 | | - |
9 | 8 | if sys.platform not in ["linux", "linux2"]: |
10 | 9 | raise AutoControlException(linux_import_error) |
11 | 10 |
|
@@ -71,7 +70,7 @@ def run(self, reply) -> None: |
71 | 70 | except AutoControlException: |
72 | 71 | raise AutoControlException(listener_error) |
73 | 72 |
|
74 | | - def record(self, record_queue)-> None: |
| 73 | + def record(self, record_queue) -> None: |
75 | 74 | """ |
76 | 75 | :param record_queue the queue test_record action |
77 | 76 | """ |
@@ -133,7 +132,7 @@ def run(self) -> None: |
133 | 132 | current_display.record_enable_context(self.context, self.handler.run) |
134 | 133 | current_display.record_free_context(self.context) |
135 | 134 | # keep running this to get event |
136 | | - next_event = self.root.display.next_event() |
| 135 | + self.root.display.next_event() |
137 | 136 | except AutoControlException: |
138 | 137 | raise AutoControlException(listener_error) |
139 | 138 | finally: |
@@ -165,9 +164,8 @@ def x11_linux_record(record_queue) -> None: |
165 | 164 | xwindows_listener.record(record_queue) |
166 | 165 |
|
167 | 166 |
|
168 | | -def x11_linux_stop_record() -> None: |
| 167 | +def x11_linux_stop_record() -> Queue: |
169 | 168 | """ |
170 | 169 | stop test_record action |
171 | 170 | """ |
172 | 171 | return xwindows_listener.stop_record() |
173 | | - |
0 commit comments