瀏覽代碼

fix import of native.find_open_port (fixes #2059)

Falko Schindler 1 年之前
父節點
當前提交
df320df0f9
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      website/documentation.py

+ 2 - 2
website/documentation.py

@@ -749,11 +749,11 @@ def create_full() -> None:
         with demo.python_window(classes='max-w-lg w-full'):
             ui.markdown('''
                 ```python
-                from nicegui import native_mode, ui
+                from nicegui import native, ui
 
                 ui.label('Hello from PyInstaller')
 
-                ui.run(reload=False, port=native_mode.find_open_port())
+                ui.run(reload=False, port=native.find_open_port())
                 ```
             ''')
         with demo.python_window('build.py', classes='max-w-lg w-full'):