- text = wxStaticText(self, -1, str, (20, 100))
- font = wxFont(18, wxSWISS, wxNORMAL, wxNORMAL, false, "Arial")
- w, h, d, e = self.GetFullTextExtent(str, font)
+ text = wx.StaticText(self, -1, str, (20, 100))
+ font = wx.Font(18, wx.SWISS, wx.NORMAL, wx.NORMAL)