dButton is one of the more common UI widgets. It is used to provide the user a way to trigger an action. Buttons typically have a small bit of text to describe their action; if you need an image instead, see dBitmapButton.
Some of the more useful properties for dButton:
| Caption - (str): The text that appears on the button |
| CancelButton - (bool): When True, the button responds to an Escape keypress as though it had been clicked. Default=False. |
| DefaultButton - (bool): When True, the button responds to an Enter/Return keypress as though it had been clicked. Default=False. |
Some of the more useful events for dButton:
| Hit: Generated when the user clicks on the button. |
See the Dabo Class Documentation for an exhaustive documentation of this control's Properties and Methods.