In this article we are going to learn about that, how can we hide a radio button present on frame. We can hide a radio button using Hide() function. Hide() function takes no argument and hide the radio button window from the frame. Hide() is different from Drop() as it just hides the radio button and can be shown again while Drop() deletes the radio button window.
Syntax: wx.RadioButton.Hide(self)
Parameters: Hide() function requires no parameters.
Return Type: bool
Code Example:
import wx APP_EXIT = 1 class Example(wx.Frame): def __init__(self, *args, **kwargs): super(Example, self).__init__(*args, **kwargs) self.InitUI() def InitUI(self): self.pnl = wx.Panel(self) # create radio button at position (30, 10) self.rb1 = wx.RadioButton(self.pnl, label ='Btn1', pos =(30, 10), size =(100, 20)) # hide radio button self.rb1.Hide() def main(): app = wx.App() ex = Example(None) ex.Show() app.MainLoop() if __name__ == '__main__': main() |
Output Window:

Recommended Posts:
- wxPython - Hide Radio Box from the frame
- wxPython - Create Radio Button using Create() function
- wxPython - Change Font colour of Radio Button
- wxPython - Change font of Radio Button
- wxPython - Change Background Colour of Radio Button
- wxPython - Set Tooltip for radio button
- wxPython - Disable Radio button
- wxPython - Change Size of Radio Button
- wxPython - Show hidden Radio Button
- wxPython - Get size of Radio Button Window
- wxPython - Hide toolbar from frame
- PyQt5 – Hide push button on click
- wxPython - Create Radio Box with two step creation
- wxPython | Get default attributes of Radio Box
- wxPython - Show hidden Radio Box
- wxPython - Disable Radio Box present in frame
- wxPython - Create Radio Box with Items in different orientation
- wxPython - Change font for text present in Radio Box
- PyQt5 – Radio button indicator at right side
- PyQt5 – Change text in Radio Button on click
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.

