Re: [wxpython-users] wx.grid with wx.GridTableBase: col/row inserting/deleting
by Kevin Ollivier other posts by this author
May 7 2008 4:49PM messages near this date
[wxpython-users] wx.grid with wx.GridTableBase: col/row inserting/deleting
|
[wxpython-users] Static variables in wx.Python?
Hi Gouki,
On May 7, 2008, at 4:33 PM, Gouki wrote:
> Hello,
>
> Could anyone here provide a simple example of inserting/deleting
> cols or rows
> in a wx.grid backed with a data table? The wiki cannot help, and
> neither can
> _wxPython In Action_...
Have you looked at the wxGrid examples in the wxPython demo?
Regards,
Kevin
>
> I have tried the following:
>
> ****************************************************************************
> class GridTable(wx.grid.PyGridTableBase):
>
> ncols = 0
> nrows = 0
>
> <snip>
>
> def InsertCols(self, pos=1, numCols=2):
> self.ncols += numCols
> return True
>
> ***************************************************************************
>
> But when I call, say grid.InsertCols(2, 2), nothing happens, even if I
> refresh... have I missed something?
>
> Thanks for any help.
>
> --
> Gouki
> LP,LP,F,F,LK,HP
> _______________________________________________
> wxpython-users mailing list
> wxpython-users@[...].org
> http://lists.wxwidgets.org/mailman/listinfo/wxpython-users
_______________________________________________
wxpython-users mailing list
wxpython-users@[...].org
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users
Thread:
Gouki
Kevin Ollivier
|