wxPython – GetSelection() method of wx.RadioBox
In this article we are going to learn about GetSelection() method associated with wx.RadioBox class of wxPython. GetSelection() function is simply used in order to returns the index of the selected item or NOT_FOUND if no item is selected.
No parameters are required by GetSelection() function.
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. And to begin with your Machine Learning Journey, join the Machine Learning - Basic Level Course
Parameters No parameters are required by GetSelection() function.
Returns: The position of the current selection.
Return Type: int