ui.run() as native mode with debug open #3722
-
If used from nicegui import ui
columns = [
{'name': 'name', 'label': 'Name', 'field': 'name'},
{'name': 'age', 'label': 'Age', 'field': 'age'},
]
rows = [
{'name': 'Alice', 'age': 18},
{'name': 'Bob', 'age': 21},
{'name': 'Carol'},
]
table = ui.table(columns=columns, rows=rows, row_key='name').classes('w-72')
table.add_slot('body', r'''
<q-tr :props="props">
<q-td
v-for="col in props.cols"
:key="col.name"
:props="props"
@click="$parent.$emit('cell-click', {row: props.row, col: col.name})"
>
{{ col.value }}
</q-td>
</q-tr>
''')
table.on('cell-click', lambda e: ui.notify(f'Row "{e.args["row"]["name"]}", column "{e.args["col"]}"'))
app.native.window_args['resizable'] = True
app.native.window_args['maximized'] = True
app.native.start_args['debug'] = True
app.native.settings['ALLOW_DOWNLOADS'] = True
ui.run(title='hello', reload=False, native=True) |
Beta Was this translation helpful? Give feedback.
Answered by
python-and-novella
Sep 13, 2024
Replies: 1 comment 1 reply
-
https://pywebview.flowrl.com/guide/debugging.html app.native.settings['OPEN_DEVTOOLS_IN_DEBUG'] = False |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
falkoschindler
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://pywebview.flowrl.com/guide/debugging.html