direct.gui.DirectButton

from direct.gui.DirectButton import DirectButton

This module contains the DirectButton class.

See the DirectButton page in the programming manual for a more in-depth explanation and an example of how to use this class.

Inheritance diagram

Inheritance diagram of direct.gui.DirectButton

class DirectButton(parent=None, **kw)[source]

Bases: DirectFrame

DirectButton(parent) - Create a DirectGuiWidget which responds to mouse clicks and execute a callback function if defined

__init__(self, parent=None, **kw)[source]
commandFunc(self, event)[source]
setClickSound(self)[source]
setCommandButtons(self)[source]
setRolloverSound(self)[source]