开发者

Insert data into texctrl

开发者 https://www.devze.com 2023-01-21 07:40 出处:网络
To inser开发者_运维知识库t data into a textctrl i do this : num_items = self.lc_sources.GetItemCount()

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

精彩评论

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