Testing wxPython 2.5.1p8 in winXP

Python 2.3.3, wxPython 2.5.1p8 on winXP:

wx.SplitterWindow. SplitHorizontally is ignoring the third argument if this is negative

in "grid.py", line 1229:

   SelectColumns = wxGridSelectColumns,

The colon at the end is not right.

Anyway, to find this constants to use with wx.Grid. SetSelectionMode was not easy.

Cristian

Echeverria Rabi, Cristián wrote:

Python 2.3.3, wxPython 2.5.1p8 on winXP:

wx.SplitterWindow. SplitHorizontally is ignoring the third argument if this is negative

Sample please.

in "grid.py", line 1229:

   SelectColumns = wxGridSelectColumns,

Fixed. Thanks.

The colon at the end is not right.

Anyway, to find this constants to use with wx.Grid. SetSelectionMode was not easy.

The new docs will help, when I get that far.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Echeverria Rabi, Cristián wrote:

Python 2.3.3, wxPython 2.5.1p8 on winXP:

wx.SplitterWindow. SplitHorizontally is ignoring the third argument if this is negative

It looks like the default window size in wxMSW was changed from (20,20) to (400,250). The wx.SplitterWindow has a feature that if the window is currently too small for the specified sashPosition then it assumes that the window hasn't been resized to it's full size yet and the value is remembered. Then in the first resize event that sash position set and all is well. Now that the initial size of the window is "big enough" then it doesn't worry about saving and resetting.

I'll ask about this on wx-dev but in the meantime the workaround is to specify a small size for the wx.SplitterWindow.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!