- Added missing docstrings (line.set(), chart.hide(), chart.exit()).

- Updated chart.exit() to destroy objects and terminate the webview process.
- Fixed WxChart not expanding correctly and removed its width and height parameters.
- Fixed KeyboardInterrupt error message when using show(block=True).
This commit is contained in:
louisnw
2023-05-12 12:56:53 +01:00
parent 5b0a8cd51f
commit d8424d6da3
4 changed files with 39 additions and 12 deletions

View File

@ -1,5 +1,4 @@
import datetime
import webview
from multiprocessing import Queue
@ -62,7 +61,9 @@ class Webview(LWC):
def hide(self): self.webview.hide()
def exit(self): self.webview.destroy()
def exit(self):
self.webview.destroy()
del self
def _loop(chart, controller=None):
@ -75,5 +76,7 @@ def _loop(chart, controller=None):
return
if func == 'show':
chart._exit.set()
elif func == 'exit':
chart._exit.set()
chart._result_q.put(result) if result is not None else None