Create RadioButton in frame using wxPython Last Updated : 01 Aug, 2020 Summarize Comments Improve Suggest changes Share Like Article Like Report In this article we are going to learn about Radio Button in wxPython. A radio button item is a button which usually denotes one of several mutually exclusive options. It has a text label next to a (usually) round button. You can create a group of mutually-exclusive radio buttons by specifying RB_GROUP for the first in the group. The group ends when another radio button group is created, or there are no more radio buttons. Syntax: wx.RadioButton.RadioButton(parent, id = ID_ANY, label = "", pos = DefaultPosition, size = DefaultSize, style = 0, validator = DefaultValidator, name = RadioButtonNameStr) Parameters: Parameter Input Type Description parent wx.Window Parent window. Should not be None. id wx.WindowID Control identifier. A value of -1 denotes a default value. label string Text Label. pos wx.Point Window position. size wx.Window Window size. style long Window style. validator wx.Validator Window validator. name string Window name. Code Example: Python3 1== # importing the module import wx # definition of the Example class class Example(wx.Frame): # instantiating the class def __init__(self, *args, **kwargs): super(Example, self).__init__(*args, **kwargs) self.InitUI() # method for creation of user interface def InitUI(self): # create parent panel for radio buttons self.pnl = wx.Panel(self) # create radio button using RadioButton() constructor self.rb = wx.RadioButton(self.pnl, id = 1, label ="Radio", pos =(20, 20)) # definition of the main function def main(): # creating an App object app = wx.App() # creating an Example object ex = Example(None) # showing the Example object ex.Show() # running the App object app.MainLoop() # driver code if __name__ == '__main__': main() Output Window: Comment More infoAdvertise with us Next Article wxPython - Create Static Box using Create() method R RahulSabharwal Follow Improve Article Tags : Python Python-wxPython Python wxPython-Button Practice Tags : python Similar Reads wxPython - Create Radio Button using Create() function Create() function is used for the two-step construction of Radio Button in wxPython. Create() function takes different attributes of radio button as an argument Syntax:  wx.RadioButton.Create(parent, id=ID_ANY, label="", pos=DefaultPosition, size=DefaultSize, style=0, validator=DefaultValidator, nam 1 min read wxPython - Enable() function in wx.RadioButton In this article we will learn about Enable() function associated with wx.RadioButton class of wxPython. Enable() function is simply used to enable or disable the Radio Button for user input. It takes a boolean argument True to Enable and False to disable. Syntax: wx.RadioButton.Enable(self, enable=T 1 min read wxPython - Staticline using Create() function In this article we are going to learn about Create() method associated with wx.StaticLine class of wxPython. A static line is just a line which may be used in a dialog to separate the groups of controls. Create() function creates Staticline using two step creation. The line may be only vertical or h 2 min read wxPython - GetValue() method in wx.RadioButton Python provides wxpython package which allows us to create high functional graphical user interface. It is cross platform GUI toolkit for python, Phoenix version Phoenix is the improved next-generation wxPython and it mainly focused on speed, maintainability and extensibility. In this article,  we 2 min read wxPython - Create Static Box using Create() method In this article we are going to learn about Static Box in wxPython. A static box is a rectangle drawn around other windows to denote a logical grouping of items. In this article we will create Static Box using two step creation, in order to do that we will use Create() method. Syntax: wx.StaticBox.C 2 min read wxPython | create control tool using CreateTool() function In this function, we are going to learn how can we create a control tool using CreateTool() function. It is another version of CreateTool() function which only takes two parameters that is control and label. Let's see the parameters in detail. Parameters : ParameterInput TypeDescriptioncontrolwx.Con 1 min read Like