- Fixed a bug causing loading times for large amounts of data to be increased significantly.
- BETA: Dynamic candlestick loading
- the config method has been removed, and its methods can now be found in various places:
- right_padding: moved to the ‘time_scale’ method.
- mode: moved to the ‘price_scale’ method.
- title: declared in the new ‘title’ method.
- It is now possible to update titles, horizontal_lines, and markers within Line objects.
This commit is contained in:
@ -12,7 +12,7 @@ class PyWV:
|
||||
self.debug = debug
|
||||
self.js_api = js_api
|
||||
self.webview = webview.create_window('', html=html, on_top=on_top, js_api=js_api,
|
||||
width=width, height=height, x=x, y=y)
|
||||
width=width, height=height, x=x, y=y, background_color='#000000')
|
||||
self.webview.events.loaded += self.on_js_load
|
||||
self.loop()
|
||||
|
||||
@ -38,8 +38,8 @@ class PyWV:
|
||||
class Chart(LWC):
|
||||
def __init__(self, volume_enabled: bool = True, width: int = 800, height: int = 600, x: int = None, y: int = None,
|
||||
on_top: bool = False, debug: bool = False,
|
||||
inner_width: float = 1.0, inner_height: float = 1.0):
|
||||
super().__init__(volume_enabled, inner_width, inner_height)
|
||||
inner_width: float = 1.0, inner_height: float = 1.0, dynamic_loading: bool = False):
|
||||
super().__init__(volume_enabled, inner_width, inner_height, dynamic_loading)
|
||||
self._js_api_code = 'pywebview.api.onClick'
|
||||
self._q = mp.Queue()
|
||||
self._script_func = self._q.put
|
||||
|
||||
Reference in New Issue
Block a user