In this article we are going to learn about GetDefaultSize() function associated with wx.Button class of wxPython. GetDefaultSize() function is used to return the default size for the buttons.
It is advised to make all the dialog buttons of the same size and this function allows retrieving the (platform, and current font dependent) size which should be the best suited for this.
Parameter Input Type Description win wx.Window Parent Window.
Return Type: wx.Size
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.