X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/95bfd958bda8955ac81277c78e5627c926154f39..30e24d9dd5a5abf1c9a375ea259eb239b122b7f7:/wxPython/demo/FontEnumerator.py?ds=sidebyside diff --git a/wxPython/demo/FontEnumerator.py b/wxPython/demo/FontEnumerator.py index 9f646a6d4c..4356a5a821 100644 --- a/wxPython/demo/FontEnumerator.py +++ b/wxPython/demo/FontEnumerator.py @@ -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() @@ -83,5 +76,5 @@ the given encoding. if __name__ == '__main__': import sys,os import run - run.main(['', os.path.basename(sys.argv[0])]) + run.main(['', os.path.basename(sys.argv[0])] + sys.argv[1:])