wxPython - Change Size of Radio Button Last Updated : 19 May, 2021 Comments Improve Suggest changes Like Article Like Report 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.SetSize(Self, size)Parameters: ParameterInput TypeDescriptionsizewx.SizeSize for radio button Code Example: Python3 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)) # change background colour self.rb1.SetBackgroundColour((255, 100, 255, 255)) # change size to (300, 50) self.rb1.SetSize((300, 50)) def main(): app = wx.App() ex = Example(None) ex.Show() app.MainLoop() if __name__ == '__main__': main() Output Window: Comment More infoAdvertise with us Next Article wxPython - Change Size of Radio Button R RahulSabharwal Follow Improve Article Tags : Python Python-gui Python-wxPython Practice Tags : python Similar Reads wxPython - change size of Button In this article we are going to learn about SetSize() function associated with wx.Button class of wxPython. SetSize() function is simply used to change the size of the button present in the frame. SetSize function takes a wxSize argument to change the size of button. Syntax: wx.Button.SetSize(self, 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 PyQt5 - Change the size of radio button In this article we will see how we can change the size of pre-existing radio button when we pressed the push button, we can change the size of radio button with the help of setGeometry method. In order to change the size of radio button when push button is pressed we have to do the following: 1. Cre 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 wxPython - Hide Radio Button 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 an 1 min read Like