wxpython - wxListCtrl - not showing data every other column

sameer sameer_ at email.com
Mon Mar 31 22:05:21 CEST 2003

wxpython - wxListCtrl - not showing data every other column, yet when
I click on the empty row, I know it is set correctly with the ItemData. 
How can I get data to show up in all rows, and not every other?

Relevant python code follows.

Thanks in Advance 

        self.appts_list = wxListCtrl(self, 220, size=(220,160),
        self.appts_list.InsertColumn(0, "Check")
        self.appts_list.InsertColumn(1, "Time")
        self.appts_list.InsertColumn(2, "Text")

            for i in range(len(appointments)-1, -1, -1):
                hour = str(appointments[i].date_time.hour)
                date =  appointments[i].date_time.strftime("%x")
                time =  appointments[i].date_time.strftime("%X")

                #self.appts_list.SetStringItem(i, 0, ' ')
                self.appts_list.SetStringItem(i, 1, '%s. %s'%(date,time))
                self.appts_list.SetStringItem(i, 2,appointments[i].getText())
                self.appts_list.SetItemData(i, i)

More information about the Python-list mailing list