ObaraEmmanuel / Formation

Tools for building gorgeous graphical user interfaces in tkinter
MIT License
274 stars 23 forks source link

Lambda-like support for callbacks #33

Closed KavyanshKhaitan2 closed 5 months ago

KavyanshKhaitan2 commented 5 months ago

Added rich callback support for callbacks. This should still keep most of the uses still working except the ones with spaces in them.

Also adding more documentation for the above feature.

Issues resolved: #32

KavyanshKhaitan2 commented 5 months ago

Showcase video: https://github.com/ObaraEmmanuel/Formation/assets/73186427/fa918c10-8cd1-4f77-ac3a-2404c49a5340

KavyanshKhaitan2 commented 5 months ago

Huh. the "workflow tests" failed because I used f"{varName=}" syntax for testing inside if __name__ == "__main__"... So pushed that on by commenting those lines out!

ObaraEmmanuel commented 5 months ago

Now I remember why I avoided type hinting. It is always changing and not consistent. Your code only works for 3.10 because of the type hinting.

ObaraEmmanuel commented 5 months ago

I would recommend you drop all type hints for now

KavyanshKhaitan2 commented 5 months ago

I would recommend you drop all type hints for now

see; I wont drop ALL type hinting; I would like to keep some basic type hinting for sure.

Again; pushing a commit...