]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/simple.py
fixed bug in WinStruct<> ctor
[wxWidgets.git] / wxPython / demo / simple.py
index c11a86f42bf0af0e6a879bbfc406c9477f79362f..6b28148228aae3e7687be1412f82df42cc832bed 100644 (file)
@@ -9,7 +9,7 @@ from wxPython.wx import *
 
 class MyFrame(wxFrame):
     """
-    This is MyFrame.  It just shows a few controls on a wxPanel, 
+    This is MyFrame.  It just shows a few controls on a wxPanel,
     and has a simple menu.
     """
     def __init__(self, parent, title):
@@ -23,11 +23,7 @@ class MyFrame(wxFrame):
         self.SetMenuBar(menuBar)
 
         panel = wxPanel(self, -1)
-        if wxPlatform == "__WXMAC__":
-            text = wxStaticText(panel, -1, 
-                                "Hello World!\nWhere is my menu?")
-        else:
-            text = wxStaticText(panel, -1, "Hello World!")
+        text = wxStaticText(panel, -1, "Hello World!")
         text.SetFont(wxFont(12, wxSWISS, wxNORMAL, wxBOLD))
         text.SetSize(text.GetBestSize())
         btn = wxButton(panel, -1, "Close")
@@ -37,7 +33,7 @@ class MyFrame(wxFrame):
         sizer.Add(text, 0, wxALL, 10)
         sizer.Add(btn, 0, wxALL, 10)
         panel.SetSizer(sizer)
-        panel.SetAutoLayout(true)
+        panel.SetAutoLayout(True)
         panel.Layout()
 
         EVT_BUTTON(self, btn.GetId(), self.OnButton)
@@ -50,6 +46,6 @@ class MyFrame(wxFrame):
 
 app = wxPySimpleApp()
 frame = MyFrame(None, "Simple wxPython App")
-frame.Show(true)
+frame.Show(True)
 app.MainLoop()