Open UI in a single native app window by default
Use NiceGUI native mode (pywebview) instead of the default browser so Desktop launchers get one dedicated window without existing tabs. Add --browser / --no-browser overrides. Co-authored-by: Diaco Soltanpour <s-diaco@users.noreply.github.com>
This commit is contained in:
@@ -1,11 +1,12 @@
|
||||
@echo off
|
||||
REM Double-click launcher with visible console (useful for troubleshooting).
|
||||
REM Default: single native app window. To use the browser instead, add --browser
|
||||
setlocal
|
||||
cd /d "%~dp0\.."
|
||||
set PORT=8080
|
||||
|
||||
if exist ".venv\Scripts\python.exe" (
|
||||
".venv\Scripts\python.exe" -m xlsx_clean.web_app --host 127.0.0.1 --port %PORT%
|
||||
".venv\Scripts\python.exe" -m xlsx_clean.web_app --host 127.0.0.1 --port %PORT% %*
|
||||
) else (
|
||||
py -3 -m xlsx_clean.web_app --host 127.0.0.1 --port %PORT%
|
||||
py -3 -m xlsx_clean.web_app --host 127.0.0.1 --port %PORT% %*
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user