- 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.SetFont(wxFont(12, wxSWISS, wxNORMAL, wxBOLD))
+ panel = wx.Panel(self, -1)
+ text = wx.StaticText(panel, -1, "Hello World!")
+ text.SetFont(wx.Font(12, wx.SWISS, wx.NORMAL, wx.BOLD))