[wxPython] 2.3.0 wxGridTableBase GetAttr changed number of args

Hi all,

I just upgraded my Linux system from wxPython 2.2.5 to 2.3.0.
Suddenly, wxGridTableBase complains that its underlying call,
wxGridTableBase_GetAttr, wants 4 args (self + 3), not, as previously,
3 (self + 2). I don't see any notes about this in Changes, so,
plunging into the code, I find that the extra arg is something called
'kind'.

It works OK with this set to 0, eg

                old_attr = self.table.GetAttr(row, 0, 0)

but what should it be?

--Patricia

I just upgraded my Linux system from wxPython 2.2.5 to 2.3.0.
Suddenly, wxGridTableBase complains that its underlying call,
wxGridTableBase_GetAttr, wants 4 args (self + 3), not, as previously,
3 (self + 2). I don't see any notes about this in Changes, so,
plunging into the code, I find that the extra arg is something called
'kind'.

It works OK with this set to 0, eg

                old_attr = self.table.GetAttr(row, 0, 0)

but what should it be?

The values are:

    wxGridCellAttr.Any (Any == 0)
    wxGridCellAttr.Default
    wxGridCellAttr.Cell
    wxGridCellAttr.Row
    wxGridCellAttr.Col
    wxGridCellAttr.Merged

Any is basically the equivallent to the old way of doing it. I'm not sure
why that isn't a default parameter...

···

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