Python | wxPython module Introduction Last Updated : 19 May, 2021 Comments Improve Suggest changes Like Article Like Report Python provides wxpython module which allows us to create high functional graphical user interface. It is an Open Source module, which means it is free for anyone to use and the source code is available for anyone to look and modify. It is implemented as a set of extension modules that wrap the GUI components of wxWidgets library which is written in C++. It is cross platform GUI toolkit for python, Phoenix version Phoenix is the improved next-generation wxPython and it mainly focused on speed, maintain ability and extensibility. Install using this command: pip install wxpython Creating GUI using wxpython: First import wx module.Create an object for application class.Create an object for frame class and other controls are added to frame object so its layout is maintained using panel .Then add a Static text object to show Hello World .Show the frame window by using show method.Run the app till the window is closed by using main event loop application object. Example #1: A simple GUI application which says GEEKS FOR GEEKS using wxpython. Python3 # import wx module import wx # creating application object app1 = wx.App() # creating a frame frame = wx.Frame(None, title ="GFG") pa = wx.Panel(frame) # Adding a text to the frame object text1 = wx.StaticText(pa, label ="GEEKS FOR GEEKS", pos =(100, 50)) # show it frame.Show() # start the event loop app1.Mainloop() Output: Example #2: Creating Buttons using wx module Python3 # Import wx module import wx # creating application object app1 = wx.App() # creating a frame frame = wx.Frame(None, title ="wxpython app") pa = wx.Panel(frame) # Button creation e = wx.Button(pa, -1, "Button1", pos = (120, 100)) # show it frame.Show() # start the event loop app1.Mainloop() Output: Example #3: CheckBox using wxpython Python3 # importing wx module import wx # creating application object app1 = wx.App() # creating a frame frame = wx.Frame(None, title ="wxpython app") pa = wx.Panel(frame) # Checkbox creation using wx module e = wx.CheckBox(pa, -1, "CheckBox1", pos = (120, 100)) e = wx.CheckBox(pa, -1, "CheckBox2", pos = (120, 120)) # show it frame.Show() # start the event loop app1.Mainloop() Output: Example #4: RadioButtons using wxpython Python3 # importing wx module import wx # creating application object app1 = wx.App() # creating a frame frame = wx.Frame(None, title ="wxpython app") pa = wx.Panel(frame) # RadioButton creation using wx module e = wx.RadioButton(pa, -1, "RadioButton1", pos = (120, 100)) e = wx.RadioButton(pa, -1, "radioButton2", pos = (120, 120)) # show it frame.Show() # start the event loop app1.Mainloop() Output: Comment More infoAdvertise with us Next Article Python | wxPython module Introduction bestharadhakrishna Follow Improve Article Tags : Technical Scripter Python python-utility Practice Tags : python Similar Reads Python - Move() function in wxPython In this particular article we will learn, how can we move our window to a particular point. This can be achieved using Move() function in wx.Window class of wxPython. Move() takes x and y points to move window to a particularx, y point. Syntax : wx.Move(self, x, y, flags=SIZE_USE_EXISTING) Parameter 1 min read wxPython | FindControl() function in Python In this particular article we are going to learn about FindControl() function of wx.ToolBar class of wxPython. FindControl() function is used to returns a pointer to the control identified by id or None if no corresponding control is found. It takes only one parameter 'id'. Syntax : wx.ToolBar.FindC 2 min read Introduction to auto-py-to-exe Module In the world of Python development, sharing your application with users who may not have Python installed can be challenging. auto-py-to-exe is a powerful tool that simplifies this process by converting Python scripts into standalone executable files (.exe) for Windows. This makes it easier to distr 4 min read wxPython - Frame() Constructor in Python In this article we will know about the frame() constructor in wxPython. frame() constructor is a constructor for the wx.Frame class of wxPython. This constructor is used to set different attributes of the frame. Syntax :  wx.Frame(parent, id=ID_ANY, title="", pos=DefaultPosition, size=DefaultSize, 1 min read wxPython| FindById() function in python In this article we are going to learn a simple function that is FindById() in wx.ToolBar class of wxPython. FindById is a simple function and returns a pointer to the tool identified by id or None if no corresponding tool is found. FindById() takes only single parameter that is id of a particular to 2 min read wxPython | Exit() function in wxPython In this article we are going to learn about wx.Exit() which is a inbuilt parent function present in wxPython.Exit() function exits application after calling wx.App.OnExit . Should only be used in an emergency: normally the top-level frame should be deleted (after deleting all other frames) to termin 1 min read Python - Create() function in wxPython In this particular article we are going to learn about Create() function present in wx.Frame class. Create function is similar to Frame() constructor of wx.Frame class. Create function is used in two-step frame construction. Syntax : wx.Frame.Create(parent, id=ID_ANY, title="", pos=DefaultPosition, 1 min read Button in wxPython - Python In this article we are going to learn how can we add buttons to a frame in wxPython. This can be done by using the Button() constructor of wx.Button class. Following styles are supported in this class: wx.BU_LEFT: Left-justifies the label. Windows and GTK+ only.wx.BU_TOP: Aligns the label to the top 2 min read Python - popup menu in wxPython In this article we are going to know how can we create a popupmenu in wxPython. We will write a code when we click right on screen a popup menu will show up with menu items names as 'one' and 'two'. Syntax : wx.Window.PopupMenu(self, menu, pos) Parameters : ParameterInput TypeDescriptionmenuwx.MenuM 1 min read wxPython | EnableTool() function in wxPython In this article we are going to learn about EnableTool() function of wx.ToolBar class of wxPython. It is another important function in wx.Toolbar class. EnableTool() function is used to enable or disable a particular tool in Toolbar. It takes 'enable' bool parameter which is when true enable the too 2 min read Like