UI/App - Allow text selection (#1593)

* When run in app mode on windows, allows selection of text from
non-input controls, which is the same behaviour as web mode.
This commit is contained in:
Stefan Kapusniak
2023-06-26 10:16:53 +01:00
committed by GitHub
parent 10657d6fb1
commit eaa49cce17

View File

@@ -30,7 +30,11 @@ def launch_app(address):
width = window.winfo_screenwidth()
height = window.winfo_screenheight()
webview.create_window(
"SHARK AI Studio", url=address, width=width, height=height
"SHARK AI Studio",
url=address,
width=width,
height=height,
text_select=True,
)
webview.start(private_mode=False)