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 info B bestharadhakrishna Follow Improve Article Tags : Technical Scripter Python python-utility Explore Python FundamentalsPython Introduction 3 min read Input and Output in Python 4 min read Python Variables 5 min read Python Operators 5 min read Python Keywords 2 min read Python Data Types 8 min read Conditional Statements in Python 3 min read Loops in Python - For, While and Nested Loops 7 min read Python Functions 5 min read Recursion in Python 6 min read Python Lambda Functions 5 min read Python Data StructuresPython String 5 min read Python Lists 5 min read Python Tuples 4 min read Dictionaries in Python 3 min read Python Sets 6 min read Python Arrays 7 min read List Comprehension in Python 4 min read Advanced PythonPython OOP Concepts 11 min read Python Exception Handling 6 min read File Handling in Python 4 min read Python Database Tutorial 4 min read Python MongoDB Tutorial 2 min read Python MySQL 9 min read Python Packages 12 min read Python Modules 7 min read Python DSA Libraries 15 min read List of Python GUI Library and Packages 3 min read Data Science with PythonNumPy Tutorial - Python Library 3 min read Pandas Tutorial 6 min read Matplotlib Tutorial 5 min read Python Seaborn Tutorial 15+ min read StatsModel Library- Tutorial 4 min read Learning Model Building in Scikit-learn 8 min read TensorFlow Tutorial 2 min read PyTorch Tutorial 7 min read Web Development with PythonFlask Tutorial 8 min read Django Tutorial | Learn Django Framework 7 min read Django ORM - Inserting, Updating & Deleting Data 4 min read Templating With Jinja2 in Flask 6 min read Django Templates 7 min read Python | Build a REST API using Flask 3 min read How to Create a basic API using Django Rest Framework ? 4 min read Python PracticePython Quiz 3 min read Python Coding Practice 1 min read Python Interview Questions and Answers 15+ min read Like