Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/source/examples/gui_examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,4 @@ df = pd.read_csv('ohlcv.csv')
chart.set(df)

chart.load()
```
```
16 changes: 10 additions & 6 deletions lightweight_charts/chart.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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()
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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(
Expand Down