You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from my point of view, we do not have to enforce a decision
for such topic without experimenting and testing it in praxis.
You can just create a UIWidget, which passes the events to the singledispatch function.
This could even be an opt-in Mix-in.
Side note:
I personally try to stick to the current arcade "statement":
Arcade is an easy-to-learn Python library for creating 2D video games. It is ideal for beginning programmers, or programmers who want to create 2D games without learning a complex framework.
My conclusion is, it should be easy to understand for beginner, or have to be optional.
( I am aware, that the GUI comes with its own complexity, but it is the easiest solution I found so far 🙈)
Enhancement request:
TL;DR: Consider one of the other dispatch tools to clean up GUI event code
What should be added/changed?
Consider one of the following to clean up our event code:
functools.singledispatchmethod
multipledispatch
plum
Why wait til 3.0+?
There might be unexpected problems which would delay 3.0.
The status of the following are unclear:
Union
types and argumentsfunctools.singledispatch
only gotUnion
support in 3.11singledispatchmethod
?What would it help with?
Reduce verbosity in cases like this:
arcade/arcade/gui/widgets/text.py
Lines 432 to 477 in 05b476f
The text was updated successfully, but these errors were encountered: