X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a541c325865cd11d1ba8ef25333b8650b2823c8a..0cf5de11339b7ee3cb3550fbac3927eaaa238d4f:/wxPython/demo/simple.py diff --git a/wxPython/demo/simple.py b/wxPython/demo/simple.py index 3b4cdfca35..6b28148228 100644 --- a/wxPython/demo/simple.py +++ b/wxPython/demo/simple.py @@ -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()