Skip to content

ui.run(native=True) does not exit python execution when exiting native app. #3931

@henrytheodoroff

Description

@henrytheodoroff

Description

from nicegui import ui

ui.label('page with custom title')

ui.run(title='My App', native=True)
print("Done!")

When running, I get this output while the native app is open (not on a browser):
image

Then, after pressing the close button on the app, the console still looks the same as above, and python is still running.

I expect the print("Done!") to not execute until after the app is closed, and then I expect python to halt execution, but it doesn't. Can someone please point me to how python ends on exit of native app? Thanks in advance.

I am running python 3.11.6 and nicegui 2.5.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions