File tree Expand file tree Collapse file tree 1 file changed +18
-13
lines changed Expand file tree Collapse file tree 1 file changed +18
-13
lines changed Original file line number Diff line number Diff line change 1
- # WebUI
1
+ # Python WebUI v2.4.3
2
2
3
- Use any web browser as GUI, with Python in the backend and HTML5 in the frontend, all in a lightweight portable lib.
3
+ > Use any web browser as GUI, with Python in the backend and HTML5 in the frontend, all in a lightweight Python package.
4
+
5
+ ## Features
6
+
7
+ - Portable (* Needs only a web browser at runtime* )
8
+ - Lightweight (* Few Kb library* ) & Small memory footprint
9
+ - Fast binary communication protocol
10
+ - Multi-platform & Multi-Browser
11
+ - Using private profile for safety
12
+ - Original library is written in Pure C
13
+
14
+ ## Documentation
4
15
5
16
* [ Online Documentation] ( https://webui.me/docs/#/python_api )
6
17
18
+ ## Install
19
+
7
20
``` sh
8
21
pip install webui2
9
22
```
10
23
24
+ ## Example
25
+
11
26
``` python
12
27
from webui import webui
13
28
14
- def my_function (e : webui.event)
15
- print (" Hi!, You clicked on " + e.element + " element" )
16
-
17
29
MyWindow = webui.window()
18
- MyWindow.bind(" MyID" , my_function)
19
- MyWindow.show(" <html>Hello World</html>" )
30
+ MyWindow.show(' <html><script src="webui.js"></script> Hello World! </html>' )
20
31
webui.wait()
21
32
```
22
-
23
- ``` sh
24
- python test.py
25
- ```
26
-
27
- ![ ScreenShot] ( https://raw.githubusercontent.com/webui-dev/python-webui/main/screenshot.png )
You can’t perform that action at this time.
0 commit comments