[wxPython-users] Re: repopulating grid can't forcerefresh to
upate values
Timothy Smith
timothy at open-networks.net
Mon Nov 13 22:40:30 PST 2006
Christian Kristukat wrote:
>Timothy Smith <timothy <at> open-networks.net> writes:
>
>
>
>>hello i'm going crazy trying to make this bloody grid show it's new
>>data, it refuses to show it's new data even on forcerefresh
>>
>>self.RosterStaffGrid.ClearGrid()
>>
>> for memeber in Staff:
>> Phone = str(memeber[0])
>> Name = memeber[1]
>> Group = memeber[2]
>> if Group == self.parent.GetPageText(self.id).split(': ')[0]:
>> self.RosterStaffGrid.table.data.append([Phone,Name,''])
>> print self.RosterStaffGrid.table.data
>> self.RosterStaffGrid.ForceRefresh()
>>
>>
>
>As you're using a custom TableBase, you have to tell the UI that the data has
>changed, by sending some event, whose name I do not remember at the moment. Have
>a look at the wxPython demo, there is at least one grid demo from which you can
>copy the necessary parts.
>
>Christian
>
>
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: wxPython-users-unsubscribe at lists.wxwidgets.org
>For additional commands, e-mail: wxPython-users-help at lists.wxwidgets.org
>
>
>
>
yeah i thought thats what ForceResfresh did?
More information about the wxpython-users
mailing list