]> git.saurik.com Git - wxWidgets.git/commitdiff
little tweaks
authorRobin Dunn <robin@alldunn.com>
Thu, 15 Jan 2004 01:24:35 +0000 (01:24 +0000)
committerRobin Dunn <robin@alldunn.com>
Thu, 15 Jan 2004 01:24:35 +0000 (01:24 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25180 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/demo/FontEnumerator.py
wxPython/demo/TextCtrl.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()
index b12a113b1376a86a050e6286f7fb8c4b8d07e3fb..c9798237fbe33bdb3d01658f44939349b070a841 100644 (file)
@@ -70,12 +70,13 @@ class TestPanel(wx.Panel):
         t5.Bind(wx.EVT_LEFT_DOWN, self.OnT5LeftDown)
         self.t5 = t5
 
+        space = 4
         bsizer = wx.BoxSizer(wx.VERTICAL)
-        bsizer.Add(b, 0, wx.GROW|wx.ALL, 4)
-        bsizer.Add(b2, 0, wx.GROW|wx.ALL, 4)
-        bsizer.Add(b3, 0, wx.GROW|wx.ALL, 4)
+        bsizer.Add(b, 0, wx.GROW|wx.ALL, space)
+        bsizer.Add(b2, 0, wx.GROW|wx.ALL, space)
+        bsizer.Add(b3, 0, wx.GROW|wx.ALL, space)
 
-        sizer = wx.FlexGridSizer(cols=3, hgap=6, vgap=6)
+        sizer = wx.FlexGridSizer(cols=3, hgap=space, vgap=space)
         sizer.AddMany([ l1, t1, (0,0),
                         l2, t2, (0,0),
                         l3, t3, bsizer,