Chris Barker wrote:
Testing CVS version from a couple day ago, rather thanthedaily build, but this probably applies:
SetSizeHints() seems to take one aragument now, rather than two in 2.5.1. I imagine this is the same old:
(x,y) vs ( (x,y) )
Issue.
It should be taking both forms.
>>> f = wx.Frame(None)
>>> f.SetSizeHints(1, 2, 3, 4)
>>> f.SetSizeHints((1, 2), (3, 4))
This is an example where I turned on overloading as I didn't think there was much need for using keyword args in this case.
$ pydoc wx.Window.SetSizeHints
Help on method SetSizeHints in wx.Window:
wx.Window.SetSizeHints = SetSizeHints(*args) unbound wx._core.Window method
SetSizeHints(self, Size minSize, Size maxSize=DefaultSize, Size incSize=DefaultSize)
SetSizeHints(self, int minW, int minH, int maxW=-1, int maxH=-1, int incW=-1,
int incH=-1)
Allows specification of minimum and maximum window sizes, and window
size increments. If a pair of values is not set (or set to -1), the
default values will be used. If this function is called, the user
will not be able to size the window outside the given bounds (if it is
a top-level window.) Sizers will also inspect the minimum window size
and will use that value if set when calculating layout.
The resizing increments are only significant under Motif or Xt.
···
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!