Просмотр исходного кода

improve description of @ui.page decorator

Rodja Trappe 1 год назад
Родитель
Сommit
5113536ee0
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      nicegui/page.py

+ 2 - 2
nicegui/page.py

@@ -29,8 +29,8 @@ class page:
                  ) -> None:
                  ) -> None:
         """Page
         """Page
 
 
-        Creates a new page at the given route.
-        Each user will see a new instance of the page.
+        This decorator marks a function to be a page-builder.
+        Each user accessing the given route will see a new instance of the page.
         This means it is private to the user and not shared with others 
         This means it is private to the user and not shared with others 
         (as it is done `when placing elements outside of a page decorator <https://nicegui.io/documentation#auto-index_page>`_).
         (as it is done `when placing elements outside of a page decorator <https://nicegui.io/documentation#auto-index_page>`_).