flet-dev / examples

Flet sample applications
MIT License
433 stars 174 forks source link

Calculator example doesn't seem to respond to mouse clicks or key presses #19

Closed jrobbins-LiveData closed 1 year ago

jrobbins-LiveData commented 1 year ago

I tried running calc.py both desktop and browser and neither instance seems to respond to clicks or keys. The other examples (counter.py and todo.py) work. Not sure how to debug or diagnose further.

FeodorFitsner commented 1 year ago

What OS are you running it on?

jrobbins-LiveData commented 1 year ago

Microsoft Windows 10 Pro Version 10.0.19044 Build 19044

FeodorFitsner commented 1 year ago

Do you get any errors in conse? How does that misbehavior look like?

YeeKal commented 1 year ago

I got the same error at Ubuntu 18.04.6 LTS x86_64 flet version is 0.1.54.

the warning in chrome console:

image

FeodorFitsner commented 1 year ago

OK, there was a bug related to a recent regression. I've updated Calc example and it works now: https://github.com/flet-dev/examples/edit/main/python/tutorials/calc/calc.py

jrobbins-LiveData commented 1 year ago

Thank you, @FeodorFitsner. I can confirm that both the desktop app and the browser app calc.py work for me now, using mouse clicks. Is it meant to also support the keyboard (not looking for scope creep, just wanting to confirm correct functioning!)