- 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:
@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user