@@ -410,7 +410,7 @@ int main() {
410410#### **Python**
411411<!-- ---------- -->
412412```python
413- my_window = webui.window()
413+ win = webui.window()
414414```
415415<!-- ---------- -->
416416#### **Deno**
@@ -836,7 +836,7 @@ func my_function(e webui.Event) string {
836836 return " "
837837}
838838
839- webui.Bind(my_window , " MyID" , my_function)
839+ webui.Bind(win , " MyID" , my_function)
840840` ` `
841841< ! -- ---------- -->
842842# ### **Nim**
@@ -856,7 +856,7 @@ fn my_function_string(e &webui.Event) {
856856 // < button id=" MyID" > Hello< /button> gets clicked!
857857}
858858
859- my_window .bind(" MyID" , my_function)
859+ win .bind(" MyID" , my_function)
860860` ` `
861861< ! -- ---------- -->
862862# ### **Odin**
@@ -872,7 +872,7 @@ fn myFunction(e: webui.Event) void {
872872 // < button id=" MyID" > Hello< /button> gets clicked!
873873}
874874
875- my_window .bind(" MyID" , myFunction);
875+ win .bind(" MyID" , myFunction);
876876` ` `
877877< ! -- ---------- -->
878878# ### **Rust**
@@ -1016,7 +1016,7 @@ def events(e: webui.event):
10161016 print('Hi!, You clicked on ' + e.element + ' element')
10171017
10181018# Empty ID means all events on all elements
1019- my_window .bind("", events)
1019+ win .bind("", events)
10201020```
10211021<!-- ---------- -->
10221022#### **Deno**
@@ -1038,7 +1038,7 @@ func my_function(e webui.Event) string {
10381038}
10391039
10401040// Empty ID means all events on all elements
1041- webui.Bind(my_window , "", events)
1041+ webui.Bind(win , "", events)
10421042```
10431043<!-- ---------- -->
10441044#### **Nim**
@@ -1102,7 +1102,7 @@ fn myFunction(e: webui.Event) void {
11021102}
11031103
11041104// Empty ID means all events on all elements
1105- my_window .bind("", myFunction);
1105+ win .bind("", myFunction);
11061106```
11071107<!-- ---------- -->
11081108#### **Rust**
@@ -1378,9 +1378,9 @@ int main() {
13781378#### **Python**
13791379<!-- ---------- -->
13801380```python
1381- my_window .show('<html><script src="/webui.js"> ... </html>')
1382- my_window .show('file.html')
1383- my_window .show('https://mydomain.com')
1381+ win .show('<html><script src="/webui.js"> ... </html>')
1382+ win .show('file.html')
1383+ win .show('https://mydomain.com')
13841384```
13851385<!-- ---------- -->
13861386#### **Deno**
@@ -1558,7 +1558,7 @@ int main() {
15581558#### **Python**
15591559<!-- ---------- -->
15601560```python
1561- my_window .show('<html><script src="/webui.js"> ... </html>', webui.browser.chrome)
1561+ win .show('<html><script src="/webui.js"> ... </html>', webui.browser.chrome)
15621562```
15631563<!-- ---------- -->
15641564#### **Deno**
@@ -1932,7 +1932,7 @@ Full C++ Example: https://github.com/webui-dev/webui/tree/main/examples/C%2B%2B/
19321932# Show the windows...
19331933
19341934# Wait until all windows get closed
1935- # or when calling my_window .exit()
1935+ # or when calling win .exit()
19361936webui.wait()
19371937```
19381938<!-- ---------- -->
@@ -1983,7 +1983,7 @@ fn main() {
19831983
19841984 // Wait until all windows get closed
19851985 // or when calling webui.exit()
1986- my_window .wait()
1986+ win .wait()
19871987}
19881988```
19891989<!-- ---------- -->
@@ -2090,7 +2090,7 @@ int main() {
20902090#### **Python**
20912091<!-- ---------- -->
20922092```python
2093- my_window .close()
2093+ win .close()
20942094```
20952095<!-- ---------- -->
20962096#### **Deno**
@@ -2102,7 +2102,7 @@ myWindow.close();
21022102#### **Go**
21032103<!-- ---------- -->
21042104```go
2105- webui.Close(my_window )
2105+ webui.Close(win )
21062106```
21072107<!-- ---------- -->
21082108#### **Nim**
@@ -2114,7 +2114,7 @@ myWindow.close()
21142114#### **V**
21152115<!-- ---------- -->
21162116```v
2117- my_window .close()
2117+ win .close()
21182118```
21192119<!-- ---------- -->
21202120#### **Odin**
@@ -2126,7 +2126,7 @@ my_window.close()
21262126#### **Zig**
21272127<!-- ---------- -->
21282128```zig
2129- my_window .close();
2129+ win .close();
21302130```
21312131<!-- ---------- -->
21322132#### **Rust**
@@ -2815,7 +2815,7 @@ fn my_files_handler(filename: []const u8) ?[]u8 {
28152815}
28162816
28172817// Set a custom files handler
2818- my_window .setFileHandler(my_files_handler);
2818+ win .setFileHandler(my_files_handler);
28192819```
28202820<!-- ---------- -->
28212821#### **Rust**
@@ -2938,7 +2938,7 @@ int main() {
29382938#### **Python**
29392939<!-- ---------- -->
29402940```python
2941- if my_window .is_shown():
2941+ if win .is_shown():
29422942 print("The window is still running")
29432943else
29442944 print("The window is closed.")
@@ -2956,7 +2956,7 @@ else
29562956#### **Go**
29572957<!-- ---------- -->
29582958```go
2959- if my_window .IsShown() {
2959+ if win .IsShown() {
29602960 fmt.Printf("The window is still running")
29612961} else {
29622962 fmt.Printf("The window is closed.")
@@ -2975,7 +2975,7 @@ else:
29752975#### **V**
29762976<!-- ---------- -->
29772977```v
2978- if webui.is_shown(my_window ) {
2978+ if webui.is_shown(win ) {
29792979 println('The window is still running')
29802980} else {
29812981 println('The window is closed.')
@@ -3235,7 +3235,7 @@ my_icon_type = "image/svg+xml"
32353235# When the web browser ask for `favicon.ico`, WebUI will
32363236# send a redirection to `favicon.svg`, the body will be `myIcon`
32373237# and the mime-type will be `myIconType`
3238- my_window .set_icon(myIcon, myIconType)
3238+ win .set_icon(myIcon, myIconType)
32393239```
32403240<!-- ---------- -->
32413241#### **Deno**
@@ -6626,12 +6626,12 @@ Full C++ Example: https://github.com/webui-dev/webui/tree/main/examples/C++/serv
66266626<!-- ---------- -->
66276627```python
66286628# Deno
6629- my_window .set_runtime(webui.runtime.deno)
6630- my_window .show("my_file.ts")
6629+ win .set_runtime(webui.runtime.deno)
6630+ win .show("my_file.ts")
66316631
66326632# Nodejs
6633- my_window .set_runtime(webui.runtime.nodejs)
6634- my_window .show("my_file.js")
6633+ win .set_runtime(webui.runtime.nodejs)
6634+ win .show("my_file.js")
66356635```
66366636<!-- ---------- -->
66376637#### **Deno**
@@ -6644,12 +6644,12 @@ my_window.show("my_file.js")
66446644<!-- ---------- -->
66456645```go
66466646// Deno
6647- webui.SetRuntime(my_window , webui.Deno)
6648- webui.Show(my_window , "my_file.ts")
6647+ webui.SetRuntime(win , webui.Deno)
6648+ webui.Show(win , "my_file.ts")
66496649
66506650// Nodejs
6651- webui.SetRuntime(my_window , webui.Nodejs)
6652- webui.Show(my_window , "my_file.js")
6651+ webui.SetRuntime(win , webui.Nodejs)
6652+ webui.Show(win , "my_file.js")
66536653```
66546654<!-- ---------- -->
66556655#### **Nim**
@@ -6668,12 +6668,12 @@ myWindow.show("my_file.js")
66686668<!-- ---------- -->
66696669```v
66706670// Deno
6671- my_window .set_runtime(.runtime_deno)
6672- my_window .show("my_file.ts")
6671+ win .set_runtime(.runtime_deno)
6672+ win .show("my_file.ts")
66736673
66746674// Nodejs
6675- my_window .set_runtime(.runtime_nodejs)
6676- my_window .show("my_file.js")
6675+ win .set_runtime(.runtime_nodejs)
6676+ win .show("my_file.js")
66776677```
66786678<!-- ---------- -->
66796679#### **Odin**
@@ -6686,12 +6686,12 @@ my_window.show("my_file.js")
66866686<!-- ---------- -->
66876687```zig
66886688// Deno
6689- my_window .setRuntime(.Deno);
6690- my_window .show("my_file.ts");
6689+ win .setRuntime(.Deno);
6690+ win .show("my_file.ts");
66916691
66926692// Nodejs
6693- my_window .setRuntime(.Nodejs);
6694- my_window .show("my_file.js");
6693+ win .setRuntime(.Nodejs);
6694+ win .show("my_file.js");
66956695```
66966696<!-- ---------- -->
66976697#### **Rust**
0 commit comments