(self)
| 191 | raise NotImplementedError |
| 192 | |
| 193 | def run(self): |
| 194 | def _run(): |
| 195 | while True: |
| 196 | self.update() |
| 197 | time.sleep(0.002) |
| 198 | if BACKEND_UPDATE: |
| 199 | from threading import Thread |
| 200 | t = Thread(target=_run, name="update") |
| 201 | t.daemon = True |
| 202 | t.start() |
| 203 | else: |
| 204 | _run() |
| 205 | |
| 206 | def console_run(self, local_dict=None): |
| 207 | global BACKEND_UPDATE |