ButtonRegistry
from panda3d.core import ButtonRegistry
- class ButtonRegistry
Bases:
The ButtonRegistry class maintains all the assigned
ButtonHandlesin a given system. There should be only one ButtonRegistry class during the lifetime of the application.Inheritance diagram
- __init__(param0: ButtonRegistry)
- findAsciiButton(ascii_equivalent: char) → ButtonHandle
Finds a
ButtonHandlein the registry matching the indicated ASCII equivalent character. If there is no suchButtonHandle, returnsButtonHandle.none().
- findButton(name: str) → ButtonHandle
Finds a
ButtonHandlein the registry matching the indicated name. If there is no suchButtonHandle, returnsButtonHandle.none().
- getButton(name: str) → ButtonHandle
Finds a
ButtonHandlein the registry matching the indicated name. If there is no suchButtonHandle, registers a new one and returns it.
- static ptr() → ButtonRegistry
Returns the pointer to the global
ButtonRegistryobject.
