In this article we are going to learn about SetAuthNeeded() function associated with wx.Button class of wxPython. SetAuthNeeded() function is used to set whether an authentication needed symbol should be displayed on the button.
It takes only boolean argument, that is, needed or not.
Syntax: wx.Button.SetAuthNeeded(self, needed=True)
Parameter Input Type Description needed bool True for needed and False for not needed.
Return Type: bool
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.