Creating Graphical User Interfaces    

Push Buttons

Push buttons generate an action when clicked (e.g., an OK button may close a dialog box and apply settings). When you click the mouse on a push button, it appears depressed; when you release the mouse, the button appears raised; and its callback executes.

Properties to Set

Programming the Callback

When the user clicks the push button, its callback executes. Push buttons do not return a value or maintain a state.


  User Interface Controls Toggle Buttons