]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/misc/widgetLayoutTest.py
More updates to the docview library modules and sample apps from the
[wxWidgets.git] / wxPython / misc / widgetLayoutTest.py
index fc2b8922e44bfd6fa21a23ec1136c0f32b9eda5e..bcb463e87c1e42bf319024aea88a2601ea10ac17 100644 (file)
@@ -468,10 +468,10 @@ class ColourInfoPanel(wx.Panel):
         sb = wx.StaticBox(self, -1, label)
         self._fgtxt = wx.TextCtrl(self, -1, "", style=wx.TE_READONLY)
         self._fgclr = wx.Panel(self, style=wx.SIMPLE_BORDER)
-        self._fgclr.SetSizeHints((20,20))
+        self._fgclr.SetMinSize((20,20))
         self._bgtxt = wx.TextCtrl(self, -1, "", style=wx.TE_READONLY)
         self._bgclr = wx.Panel(self, style=wx.SIMPLE_BORDER)
-        self._bgclr.SetSizeHints((20,20))
+        self._bgclr.SetMinSize((20,20))
 
         # setup the layout
         fgs = wx.FlexGridSizer(2, 3, 5, 5)
@@ -502,9 +502,6 @@ class ColourInfoPanel(wx.Panel):
         self._fgtxt.SetValue( clr2hex(win.GetForegroundColour(), self._fgclr) )
         self._bgtxt.SetValue( clr2hex(win.GetBackgroundColour(), self._bgclr) )
 
-##         f = win.GetFont()
-##         print f.GetNativeFontInfo().ToString()
-        
 
     def Clear(self):
         self._fgtxt.SetValue("")