Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import wx
- class App(wx.App):
- def OnInit(self):
- frame1 = wx.Frame(None)
- panel1 = wx.Panel(frame1)
- wx.StaticText(panel1, -1, "This is panel 1")
- frame1.Show()
- frame2 = wx.Frame(frame1)
- panel2 = wx.Panel(frame2)
- wx.StaticText(panel2, -1, "This is panel 2")
- frame2.Show()
- return True
- app = App(redirect = False)
- app.MainLoop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement