Widget: Base of every widget implementation.
Get a widget by ID
Bases: pymt.event.EventDispatcher
Global base for any multitouch widget. Implement event for mouse, object, touch and animation.
Event are dispatched through widget only if it’s visible.
| Parameters : |
|
|---|---|
| Events : |
|
Add a widget in the children list.
Called at __init__ time to applied css attribute in current class.
Remove it from wherever it is and add it back at the top
List of children (SafeList)
Get/Set the class of the widget (used for CSS, can be a string or a list of string
Apply/Start animations on the widgets.
| Parameters : |
|
|---|
Handle the draw of widget. Derivate this method to draw your widget.
If False, childrens are not drawed. (deprecated)
Return the parent layout of widget
Return the parent window of widget
Return the root window of widget
Hide the widget
str: id of widget
MTWidget: parent of widget. Fired on_parent event when set
Called when css want to be reloaded from scratch
Remove a widget from the children list
Show the widget
size_hint is used by layouts to determine size behaviour during layout
Dictionnary that contains the widget style
Transform parent coordinate to local coordinate
| Parameters : |
|
|---|
Transform local coordinate to parent coordinate
| Parameters : |
|
|---|
Return the coordinate from window to local widget
Transform local coordinate to window coordinate
True if the widget is visible. If False, the events on_draw,on_touch_down, on_touch_move, on_touch_up are not dispatched.