]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/FontEnumerator.py
Script updates
[wxWidgets.git] / wxPython / demo / FontEnumerator.py
index 9f646a6d4cd8092fad4d5585032b3a6b6d08a0a1..0a66c7ab738ec652ff46474f12ba3211d73e9555 100644 (file)
@@ -43,18 +43,11 @@ class TestPanel(wx.Panel):
 
 
     def OnSelect(self, evt):
-        #print "OnSelect: "
         face = self.lb1.GetStringSelection()
-        #print '\t '+face
         font = wx.Font(28, wx.DEFAULT, wx.NORMAL, wx.NORMAL, False, face)
-        #print "\t got font"
         self.txt.SetLabel(face)
-        #print "\t set label"
         self.txt.SetFont(font)
-        #print "\t set font"
-        #self.txt.SetSize(self.txt.GetBestSize())
-        #print "\t set size"
-
+        if wx.Platform == "__WXMAC__": self.Refresh()
 
 ##         st = font.GetNativeFontInfo().ToString()
 ##         ni2 = wx.NativeFontInfo()