Custom Controls

If you plan on extending any of the built in controls (such as using Group to make your own composite controls) then make sure you call both the __init__ and __new__ methods.

Controls can have callback methods defined that are called at various points in their lifecycle. It is recommended that you read the docstrings of and inherit from the ControlsWith<callback name> classes if you want to use them.


ControlWithConnectCallback - Called just before an event is connected to a control.


ControlWithPlacedCallback - Called after the control has been placed in a Window or Group.


ControlWithRemovedCallback - Called just before a control is removed from the window.


ControlWithFocusedCallback - Called when a control is focused on.