File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -47,11 +47,11 @@ def main(page: Page):
47
47
txt_number = TextField(value = " 0" , text_align = " right" , width = 100 )
48
48
49
49
def minus_click (e ):
50
- txt_number.value = int (txt_number.value) - 1
50
+ txt_number.value = str ( int (txt_number.value) - 1 )
51
51
page.update()
52
52
53
53
def plus_click (e ):
54
- txt_number.value = int (txt_number.value) + 1
54
+ txt_number.value = str ( int (txt_number.value) + 1 )
55
55
page.update()
56
56
57
57
page.add(
@@ -88,7 +88,7 @@ The app will be started in a native OS window - what a nice alternative to Elect
88
88
Now, if you want to run the app as a web app, just replace the last line with:
89
89
90
90
``` python
91
- flet.app(target = main, view = flet.WEB_BROWSER )
91
+ flet.app(target = main, view = flet.AppView. WEB_BROWSER )
92
92
```
93
93
94
94
run again and now you instantly get a web app:
You can’t perform that action at this time.
0 commit comments