wxpython listbox multiselection
来源:互联网 发布:摆摊打印照片软件 编辑:程序博客网 时间:2024/06/14 08:25
than one item is selected, then you'll want to not use virtual mode. If
you just need to be able to find out what items are currently selected
then you can use a loop like this:
item = listctrl.GetFirstSelected()
while item != -1:
# do something with the item
item = listctrl.GetNextSelected(item)
When the ListCtrl is in virtual mode then it won't do anything that
could possibly mean that every item in the list would be visited. This
includes sending an event for every item selected when a multiple
selection is done. To understand why this is the case try to imagine
what would happen if you had an event handler for item selection and a
virtual listctrl with 1 billion items, and you click the first item,
scroll to the bottom and shift-click the last item. Scrolling would be
quick because it only needs to visit those items that need to be
painted, but sending the selection events would take a week or so. ;-)
--
Robin Dunn
Software Craftsman
http://wxpython-users.1045709.n5.nabble.com/listctrl-and-multiple-selection-td2355984.html
- wxpython listbox multiselection
- wxPython in Action (wx.ListBox)
- wxPython in Action (wx.ListBox)
- wxPython
- wxPython
- wxPython
- wxpython
- wxPython
- wxpython
- wxPython常用控件--wx.Grid,wx.ListBox,wx.ListCtrl,wx.TreeCtrl
- listbox
- listbox
- ListBox
- listbox
- Listbox
- listbox
- ListBox
- LISTBOX
- More is better
- c# Invoke和BeginInvoke 区别
- Oracle中字符集的类型决定varchar2的字符长度
- 七大经典排序-序
- linux tail命令
- wxpython listbox multiselection
- HDU 1307 搜索
- C#时间/日期格式
- 调试技巧
- SQLServer系统函数(3)_日期与时间函数
- java--IO流
- Linux下的输入/输出重定向
- Mac下搭建quick cocos2d-x编译环境
- android test