Other doc updates

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26380 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2004-03-26 21:27:23 +00:00
parent 5444f3a944
commit 90805926b7
14 changed files with 305 additions and 77 deletions

View File

@@ -13,7 +13,8 @@ class MyFrame(wx.Frame):
and has a simple menu.
"""
def __init__(self, parent, title):
wx.Frame.__init__(self, parent, -1, title, size=(350, 200))
wx.Frame.__init__(self, parent, -1, title,
pos=(150, 150), size=(350, 200))
# Create the menubar
menuBar = wx.MenuBar()
@@ -70,8 +71,13 @@ class MyFrame(wx.Frame):
print "Having fun yet?"
app = wx.PySimpleApp()
frame = MyFrame(None, "Simple wxPython App")
frame.Show(True)
class MyApp(wx.App):
def OnInit(self):
frame = MyFrame(None, "Simple wxPython App")
frame.Show(True)
self.SetTopWindow(frame)
return True
app = MyApp(True)
app.MainLoop()