SetSizeHints fix
authorRobin Dunn <robin@alldunn.com>
Tue, 24 Aug 2004 23:57:01 +0000 (23:57 +0000)
committerRobin Dunn <robin@alldunn.com>
Tue, 24 Aug 2004 23:57:01 +0000 (23:57 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28882 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/misc/widgetLayoutTest.cfg
wxPython/misc/widgetLayoutTest.py

index d7ede497ad329f9fe62c423e8737b08b584e0e31..cd8e880beccc5a20a13be73abfbf6a84489781f0 100644 (file)
@@ -15,6 +15,7 @@
 ['wx', 'Gauge', '-1, 100', 'w.SetValue(40)'],
 ['wx', 'Gauge', '-1, 100, style=wx.GA_VERTICAL', 'w.SetValue(60)'],
 ['wx', 'ListBox', '-1, choices="one two three four five six seven eight".split()', ''],
+['wx', 'ListCtrl', 'style=wx.LC_REPORT', 'w.InsertColumn(0, "Col1")\rw.InsertStringItem(0, "Item 0")\rw.InsertStringItem(0, "Item 1")\r#w.SetSizeHints((200,100))'],
 ['wx', 'ListCtrl', 'style=wx.LC_REPORT, size=(100,100)', 'w.InsertColumn(0, "Col1")\nw.InsertStringItem(0, "Item 0")\nw.InsertStringItem(0, "Item 1")\n#w.SetSizeHints((200,100))'],
 ['wx', 'Notebook', '', 'p = wx.Panel(w)\np.SetSizeHints((150,150))\nw.AddPage(p, "test")\n'],
 ['wx', 'Panel', 'size=(150,150)', ''],
index 9cce150933fd77bd0872340fc2855805db7a7bb7..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)