little tweaks

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25180 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2004-01-15 01:24:35 +00:00
parent 5eba439479
commit 90f7e9c7f7
2 changed files with 6 additions and 12 deletions

View 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()