Advertisement
Guest User

Untitled

a guest
Jan 27th, 2012
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.40 KB | None | 0 0
  1. import wx
  2.  
  3. class App(wx.App):
  4.     def OnInit(self):
  5.         frame1 = wx.Frame(None)
  6.         panel1 = wx.Panel(frame1)
  7.         wx.StaticText(panel1, -1, "This is panel 1")
  8.         frame1.Show()
  9.         frame2 = wx.Frame(frame1)
  10.         panel2 = wx.Panel(frame2)
  11.         wx.StaticText(panel2, -1, "This is panel 2")
  12.         frame2.Show()
  13.         return True
  14.  
  15. app = App(redirect = False)
  16. app.MainLoop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement