开发者

Insert data into texctrl

To inser开发者_运维知识库t data into a textctrl i do this :

num_items = self.lc_sources.GetItemCount() 
self.lc_sources.SetStringItem(num_items, 1, data)

But the problem is the insertion is done after the treatment of data, well and i need to do insertion in real time. Please how can i do this


I usually do something like this when I need to update a ListCtrl:

self.list_ctrl.InsertStringItem(index, data) self.list_ctrl.SetStringItem(index, 1, moreData)

Lately, I've been using ObjectListView instead of the ListCtrl because I think it's just easier to use and more flexible too: http://objectlistview.sourceforge.net/python/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜