After moving our Python and wxPython code from Linux to
Windows XP we noticed several problems. The main issue is
that none of the event handlers in a wxGrid are called for
cell or mouse events in rows other than the first one.
There are two kinds of rows in our wxGrid, normal rows and
break rows. Break rows serve as separators between sets of
normal rows. Break rows have a size (height) of 2 and a
seperate wxGridCellAttr with a black background color. In
this particular case, the 1st, 3rd, 5th row is normal and
the 2nd, 4th, etc. is a break row.
All grid events work just fine on Linux but not on Windows
XP. None of the even handlers set up for the grid are called
for rows beyond the first.
However, we found by accident, if we remove the break rows,
then things work as expected on Windows. Any explanation
for this would be appreciated.
/Jean Brouwers
PS) We use wxPython 2.4.1.2 with Python 2.3.1 both on Linux
RH8 with GTK2 and Windows XP.
Some more data on this issue. The problems seems to be the
calling grid.SetRowSize(row, 2) for the 'break' rows.
With that call, regardless of the size, mouse and cell events
in the grid fails. Without that call, things work.
/Jean Brouwers
Jean Brouwers wrote:
···
After moving our Python and wxPython code from Linux to
Windows XP we noticed several problems. The main issue is
that none of the event handlers in a wxGrid are called for
cell or mouse events in rows other than the first one.
There are two kinds of rows in our wxGrid, normal rows and
break rows. Break rows serve as separators between sets of
normal rows. Break rows have a size (height) of 2 and a
seperate wxGridCellAttr with a black background color. In
this particular case, the 1st, 3rd, 5th row is normal and
the 2nd, 4th, etc. is a break row.
All grid events work just fine on Linux but not on Windows
XP. None of the even handlers set up for the grid are called
for rows beyond the first.
However, we found by accident, if we remove the break rows,
then things work as expected on Windows. Any explanation
for this would be appreciated.
/Jean Brouwers
PS) We use wxPython 2.4.1.2 with Python 2.3.1 both on Linux
RH8 with GTK2 and Windows XP.
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwindows.org
For additional commands, e-mail: wxPython-users-help@lists.wxwindows.org