Deprecation Warning in wx.grid

Laszlo Antal lantal at naromventures.com
Tue Jan 30 17:10:44 PST 2007


Hi,

Using wx.grid.EVT_GRID_RANGE_SELECT with wx.grid
I got this warning::
    C:\Python24\lib\site-packages\wx-2.8-msw-ansi\wx\grid.py:1140:
    DeprecationWarning: asTuple is deprecated, use `Get` instead
    def __getitem__(self, index):        return self.asTuple()[index]

By replacing self.asTuple()[index] to self.Get() in grid.py the warning 
disappeared.

I just thought someone would find this useful.

Laszlo

   




More information about the wxpython-users mailing list