Skip to content

Commit 86f8eb4

Browse files
committed
Adding few Python comments
1 parent b33f12e commit 86f8eb4

File tree

1 file changed

+32
-1
lines changed

1 file changed

+32
-1
lines changed

server/docs/2.5/README.md

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ int main() {
285285
from webui import webui
286286
287287
my_window = webui.Window()
288-
my_window.show('<html><script src="webui.js"></script> Hello World! </html>')
288+
my_window.show('<html><script src="webui.js"></script> Hello World from Python! </html>')
289289
webui.wait()
290290
```
291291
[More Python Examples](https://github.com/webui-dev/python-webui/tree/main/examples).
@@ -7313,6 +7313,37 @@ int main() {
73137313
```python
73147314
from webui import webui
73157315
7316+
# Control if `show()`, `show_browser()` and
7317+
# `show_wv()` should wait for the window to connect
7318+
# before returns or not.
7319+
#
7320+
# show_wait_connection = 0,
7321+
7322+
# Control if WebUI should block and process the UI events
7323+
# one a time in a single thread `True`, or process every
7324+
# event in a new non-blocking thread `False`. This updates
7325+
# all windows. You can use `set_event_blocking()` for
7326+
# a specific single window update.
7327+
#
7328+
# ui_event_blocking,
7329+
7330+
# Automatically refresh the window UI when any file in the
7331+
# root folder gets changed.
7332+
#
7333+
# folder_monitor,
7334+
7335+
# Allow multiple clients to connect to the same window,
7336+
# This is helpful for web apps (non-desktop software),
7337+
# Please see the documentation for more details.
7338+
#
7339+
# multi_client,
7340+
7341+
# Allow multiple clients to connect to the same window,
7342+
# This is helpful for web apps (non-desktop software),
7343+
# Please see the documentation for more details.
7344+
#
7345+
# use_cookies,
7346+
73167347
webui.set_config(webui.Config.show_wait_connection, False) # Disable waiting for connection
73177348
```
73187349
<!-- ---------- -->

0 commit comments

Comments
 (0)