set selection in ListCtrl

Hello,

wx.ListCtrl.SetItemState is probably what you are looking for,

myList.SetItemState(itemId, wx.LIST_STATE_SELECTED, wx.LIST_STATE_SELECTED)

cody

···

On Mar 29, 2008, at 9:20 AM, Jacek Poplawski wrote:

How can I set selection in ListCtrl?
In documentation I found only how to check what is currently selected.
But what if I want to control things on list and I want to select something from source code?


Free Software - find interesting programs and change them
NetHack - meet interesting creatures, kill them and eat their bodies
Usenet - meet interesting people from all over the world and flame them
Decopter - unrealistic helicopter simulator, get it from http://decopter.sf.net


wxpython-users mailing list

wxpython-users@lists.wxwidgets.org

http://lists.wxwidgets.org/mailman/listinfo/wxpython-users