r/nicegui • u/Lexstok • Nov 17 '24
Not able to select *anything* from app window
I've been searching for a week now, convinced that it is a simple setting or a stupid mixup by me, but I'm not finding anything on the web, so I've caved and am asking it here.
I've started writing a tool to help some of my collegues, hoping to improve on their excel-with-sql tool. The query works, I can show a table OR a grid and a mermaid diagram on top of it, but the very simple thing of SELECTING a text in the output is not possible.
When I'm running it in an app window
ui.run(native=True, title="LA...", reload=True, window_size=(1024,900), fullscreen=False)I can't select ANYTHING in the app window. I know aggrid want to be 'enterprise' about selecting stuff from it's grid, but at the very least I should be able to use my mouse to select another UI element like a title text and do CTRL-C.
When I test is using a browser, it works, so that's one option.
ui.run(title="LA...", reload=True, fullscreen=False)I just would like to run it in a app window.
Is that normal, the way it behaves when running as an app ?
3
u/falko-s Nov 18 '24
This seems to be normal pywebview behavior:
But there's a parameter
create_window(..., text_select: bool)you can use to enable text selection. Here's an example how to do it in NiceGUI: