Skip to content

Commit

Permalink
Merge branch 'main' of github.com:zauberzeug/nicegui
Browse files Browse the repository at this point in the history
  • Loading branch information
rodja committed Nov 21, 2023
2 parents baf87ab + 1ec7286 commit 460dbc1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/ros2/ros2_ws/src/gui/gui/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from rclpy.executors import ExternalShutdownException
from rclpy.node import Node

from nicegui import Client, app, run, ui
from nicegui import Client, app, ui, ui_run


class NiceGuiNode(Node):
Expand Down Expand Up @@ -70,5 +70,5 @@ def ros_main() -> None:


app.on_startup(lambda: threading.Thread(target=ros_main).start())
run.APP_IMPORT_STRING = f'{__name__}:app' # ROS2 uses a non-standard module name, so we need to specify it here
ui_run.APP_IMPORT_STRING = f'{__name__}:app' # ROS2 uses a non-standard module name, so we need to specify it here
ui.run(uvicorn_reload_dirs=str(Path(__file__).parent.resolve()), favicon='🤖')

0 comments on commit 460dbc1

Please sign in to comment.