diff --git a/docs/source/examples/gui_examples.md b/docs/source/examples/gui_examples.md index b5eaf7cf..b6859fc1 100644 --- a/docs/source/examples/gui_examples.md +++ b/docs/source/examples/gui_examples.md @@ -95,4 +95,4 @@ df = pd.read_csv('ohlcv.csv') chart.set(df) chart.load() -``` \ No newline at end of file +``` diff --git a/lightweight_charts/chart.py b/lightweight_charts/chart.py index 305534c8..38d4f68d 100644 --- a/lightweight_charts/chart.py +++ b/lightweight_charts/chart.py @@ -36,7 +36,7 @@ def __init__(self, q, emit_q, return_q, loaded_event): def create_window( self, width, height, x, y, screen=None, on_top=False, - maximize=False, title='' + maximize=False, title='', frameless=False, easy_drag=False ): screen = webview.screens[screen] if screen is not None else None if maximize: @@ -56,7 +56,9 @@ def create_window( y=y, screen=screen, on_top=on_top, - background_color='#000000') + background_color='#000000', + frameless=frameless, + easy_drag=easy_drag) ) self.windows[-1].events.loaded += lambda: self.loaded_event.set() @@ -115,11 +117,11 @@ def _reset(self): def create_window( self, width, height, x, y, screen=None, on_top=False, - maximize=False, title='' + maximize=False, title='', frameless=False, easy_drag=False ): self.function_call_queue.put(( 'create_window', - (width, height, x, y, screen, on_top, maximize, title) + (width, height, x, y, screen, on_top, maximize, title, frameless, easy_drag) )) self.max_window_num += 1 return self.max_window_num @@ -165,11 +167,13 @@ def __init__( inner_width: float = 1.0, inner_height: float = 1.0, scale_candles_only: bool = False, - position: FLOAT = 'left' + position: FLOAT = 'left', + frameless: bool = False, + easy_drag: bool = False ): Chart.WV.debug = debug self._i = Chart.WV.create_window( - width, height, x, y, screen, on_top, maximize, title + width, height, x, y, screen, on_top, maximize, title, frameless, easy_drag ) window = abstract.Window(