X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7d77854038dc8fb4d58707b69689eb7465617bf6..c1dda21b64f300d89cbc084802082d37c694e971:/wxPython/demo/About.py diff --git a/wxPython/demo/About.py b/wxPython/demo/About.py index b457bef92e..db49ecad94 100644 --- a/wxPython/demo/About.py +++ b/wxPython/demo/About.py @@ -50,10 +50,11 @@ demo item so you can learn how to use the classes yourself.

if "gtk2" in wx.PlatformInfo: html.SetStandardFonts() py_version = sys.version.split()[0] - html.SetPage(self.text % (wx.VERSION_STRING, - ", ".join(wx.PlatformInfo[1:]), - py_version - )) + txt = self.text % (wx.VERSION_STRING, + ", ".join(wx.PlatformInfo[1:]), + py_version + ) + html.SetPage(txt) btn = html.FindWindowById(wx.ID_OK) ir = html.GetInternalRepresentation() html.SetSize( (ir.GetWidth()+25, ir.GetHeight()+25) )