wxPython - Create Radio Button using Create() function Last Updated : 01 Aug, 2020 Comments Improve Suggest changes Like Article Like Report 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, name=RadioButtonNameStr ) Parameters: ParameterInput TypeDescriptionparentwx.WindowParent window. Should not be None.idwx.WindowIDControl identifier. A value of -1 denotes a default value.labelstringText Label.poswx.PointWindow position.sizewx.WindowWindow size.stylelongWindow style.validatorwx.ValidatorWindow validator.namestringWindow name. Example: Python3 # importing wx library import wx APP_EXIT = 1 # create an Example class class Example(wx.Frame): # constructor def __init__(self, *args, **kwargs): super(Example, self).__init__(*args, **kwargs) # method calling self.InitUI() # method for user interface creation def InitUI(self): # create parent panel in frame for radio button self.pnl = wx.Panel(self) # initialize radio button self.rb = wx.RadioButton() # create radio button with two step creation self.rb.Create(self.pnl, id = 1, label = "Radio", pos = (20,20)) # main function def main(): # create an App object app = wx.App() # create an Example object ex = Example(None) ex.Show() # running an app app.MainLoop() # Driver code if __name__ == '__main__': # main function call main() Output: Comment More infoAdvertise with us Next Article wxPython - Create Radio Button using Create() function R RahulSabharwal Follow Improve Article Tags : Python Python-wxPython Python wxPython-Button Practice Tags : python Similar Reads 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 wxPython - Create() function in wx.Button In this article we are going to learn about Create() function associated with wx.Button class of wxPython. Create() function is used for button creation function for two-step creation. It takes attributes of a button as arguments. Syntax: wx.Button.Create(self, parent, id=ID_ANY, label="", pos=Defau 1 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 Create RadioButton in frame using wxPython 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_GRO 2 min read wxPython - Create Radio Box with two step creation In this article we are going to learn to create a radio box in a frame. A radio box item is used to select one of number of mutually exclusive choices. It is displayed as a vertical column or horizontal row of labelled buttons. In order to create radio box we will use Create() function in wx.RadioBo 2 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 - Change Font colour of Radio Button In this article we are going to learn that how can we change the foreground or font color of the radio button. In order to change the foreground colour of Radio Button we will use SetForegroundColour() function. SetForegroundColour() function sets the foreground colour of the window. The meaning of 2 min read wxPyhon - BitmapButton using Create() method In this article we will learn about how we can create a BitmapButton using Create() function. Create() function is a button creation function for two-step creation. BitmapButton() constructor cannot be used for two step BitmapButton creation. It takes different Bitmap Button attributes as parameters 1 min read wxPython - Change Size of Radio Button In this article we will learn to change size of a Radio Button. We will change the size of Radio Button using SetSize() function associated with wx.RadioButton class of wxPython. SetSize() function is simply used to change the size of the window of Radio Button in pixels. Syntax: wx.RadioButton.SetS 1 min read wxPython - Change font of Radio Button In this article we are going to learn that how can we change the font of the label text present on the radio button present in the frame. We need to follow some steps as follows: Step 1: Create a wx.Font object. Step 2: Add different attributes of font in parameters like: family, style etc. Step 3: 1 min read Like