Description
With the advent of new widgets such as icon_widget
, a clear need has arisen for common function naming schemes for the Control
class. The objective is so that the main event handler can use a common approach for calling multiple widgets to respond to various input events.
Of course, widgets aren't required to conform to any pre-defined response functions, but it will likely make it easier to write a Main loop event handler if widgets have the same function naming and a common expected effect.
Here's one example. Looking at the PyGUI, it defines responses to four mouse events:
- mouse down
- mouse up
- mouse drag (button is pressed)
- mouse move (button is not pressed)
This issue is raised to gather suggestions for the basic response functions to use in the Control
class.
Let's discuss a few basic functions that make sense in a touch environment on small microcontroller screens. The objective is not to collect 100% of cases, but to capture the few things that would be most used, and then grow from there.