#first wxPython application #Start: June 30 2008 #Author: Lamonte (wx-python-blog.cleanscript.com) #import wx python module import wx class FrameClass(wx.Frame): def __init__(self, parent, id, title): """ create a frame widget this is the actual window that we see initialize the frame widget init class which must be initialized inorder for the widget to work """ wx.Frame.__init__(self, parent, id, title) #set window size def size(self,size): self.SetSize(size) #show the frame widget window def display(self): self.Show() #create a new application object application = wx.App() #create a frame widget this is the actual window that we see with the window title of "My First Application" frame = FrameClass(None,-1,"My Second Frame Application") #set the frame size frame.size((400,300)) #display the frame frame.display() #loop the application until the user closes the applicationa application.MainLoop()