projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
forgot to commit during last regeneration
[wxWidgets.git]
/
wxPython
/
demo
/
FontEnumerator.py
diff --git
a/wxPython/demo/FontEnumerator.py
b/wxPython/demo/FontEnumerator.py
index 71ce22e7844371775bb0f301cbb1a45259e00b26..4356a5a821741c02819e8249ca851914f2d13079 100644
(file)
--- a/
wxPython/demo/FontEnumerator.py
+++ b/
wxPython/demo/FontEnumerator.py
@@
-1,7
+1,3
@@
-# 11/25/2003 - Jeff Grimmett (grimmtooth@softhome.net)
-#
-# o Updated for V2.5
-#
import wx
import wx
@@
-47,18
+43,11
@@
class TestPanel(wx.Panel):
def OnSelect(self, evt):
def OnSelect(self, evt):
- #print "OnSelect: "
face = self.lb1.GetStringSelection()
face = self.lb1.GetStringSelection()
- #print '\t '+face
font = wx.Font(28, wx.DEFAULT, wx.NORMAL, wx.NORMAL, False, face)
font = wx.Font(28, wx.DEFAULT, wx.NORMAL, wx.NORMAL, False, face)
- #print "\t got font"
self.txt.SetLabel(face)
self.txt.SetLabel(face)
- #print "\t set label"
self.txt.SetFont(font)
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()
## st = font.GetNativeFontInfo().ToString()
## ni2 = wx.NativeFontInfo()
@@
-87,5
+76,5
@@
the given encoding.
if __name__ == '__main__':
import sys,os
import run
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:]
)