In this article we are going to learn about SetDefault() function associated with the wx.Button class of wxPython. This sets the button to be the default item in its top-level window (e.g. the panel or the dialog box containing it).
As normal, pressing return causes the default button to be depressed when the return key is pressed.
Parameters: No parameters
Return Type: wx.Window
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course.