Compare commits

..

No commits in common. "main" and "1.0" have entirely different histories.
main ... 1.0

5 changed files with 0 additions and 32 deletions

View file

@ -1,9 +0,0 @@
# A doner Flet app
An example of a minimal Flet app.
To run the app:
```
flet run [app_directory]
```

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

View file

@ -1,2 +0,0 @@
cd ./doner
source .venv/bin/activate

20
main.py
View file

@ -1,20 +0,0 @@
import flet as ft
def main(page: ft.Page):
page.title = "Döner Rechner"
def d_to_g(e):
tgeld.value = str(int(tdoner.value)*int(tpreis.value))
page.update()
def g_to_d(e):
tdoner.value = str(int(tgeld.value)/int(tpreis.value))
page.update()
tpreis = ft.TextField(value=5,keyboard_type="NUMBER",scale=0.5)
tdoner = ft.TextField(on_change=d_to_g,keyboard_type="NUMBER")
tgeld = ft.TextField(on_change=g_to_d,keyboard_type="NUMBER")
page.add(ft.SafeArea(ft.Row([tpreis,ft.Text("Preis")])),
ft.Row([tdoner,ft.Text("Döner")]),
ft.Text("zu"),
ft.Row([tgeld,ft.Text("Euro")]))
ft.app(main)

View file

@ -1 +0,0 @@
flet==0.22.*