Explorar o código

fix import of native.find_open_port (fixes #2059)

Falko Schindler hai 1 ano
pai
achega
df320df0f9
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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'):