wxPython – Create empty window
wxPython is one of the most famous library in python for building GUI applications. In this first article of wxPython we will build an empty window using wxPython Library.
Steps to create empty window : 1. Import wx in your code 2. Create wx.App object 3. Create object for wx.Frame 4. Show frame using Show() function
Python3
import wx
app = wx.App( False )
app = wx.App( False )
frame = wx.Frame( None , wx.ID_ANY, "GeeksforGeeks")
frame.Show( True )
app.MainLoop()
frame = wx.Frame( None , wx.ID_ANY, "GeeksforGeeks")
frame.Show( True )
app.MainLoop()
|
As you run this program a new empty window will pop up on your screen with a label GeeksforGeeks. Output :
Last Updated :
10 Oct, 2022
Like Article
Save Article
Share your thoughts in the comments
Please Login to comment...