From e99e6b42de23d42c5f38dbd6136b240d302dd214 Mon Sep 17 00:00:00 2001 From: rcervellione Date: Wed, 22 Nov 2023 10:24:03 -0500 Subject: [PATCH] add a window to show if not in live mode when enabling the extension, you may not know it worked unless you go to live mode, this will let users know it loaded and what to expect --- .../omni.iot.sample.panel/omni/iot/sample/panel/extension.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/exts/omni.iot.sample.panel/omni/iot/sample/panel/extension.py b/exts/omni.iot.sample.panel/omni/iot/sample/panel/extension.py index a2990db..a4947f7 100644 --- a/exts/omni.iot.sample.panel/omni/iot/sample/panel/extension.py +++ b/exts/omni.iot.sample.panel/omni/iot/sample/panel/extension.py @@ -271,3 +271,8 @@ def _update_ui(self): self._stage_event_sub = None self._property_stack = None self._window = None + self._window = ui.Window("Sample IoT Data", width=350, height=390) + self._window.frame.set_style(uiElementStyles.mainWindow) + with self._window.frame: + with ui.VStack(height =50): + ui.Label("Please enter a live session to begin", style= uiTextStyles.title2)