views:

39

answers:

1

My TweetGrid class is implemented as:

class TweetGrid(wx.grid.Grid):
    __init__(self, parent, statuses):
        wx.grid.Grid__init(self, parent, -1)
        self.SetTable(TweetGridTable(statuses)

Where TweetGridTable is a subclass of wx.grid.PyGridTableBase.

if foo is an instance of TweetGrid and I call:

foo.ForceRefresh()

I get:

AttributeError: 'TweetGrid' object has no attribute 'ForceRefesh'

However, it seems to update if I do

foo.SetTable(TweetGridTable(statuses))
+1  A: 
AttributeError: 'TweetGrid' object has no attribute 'ForceRefesh'

You spelled ForceRefresh wrong.

FogleBird
Maybe I should quit coding after 2am.
Derrick