Test wx.CommandEvent.GetClientData
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37948 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -101,8 +101,11 @@ class TestListBox(wx.Panel):
|
|||||||
|
|
||||||
|
|
||||||
def EvtListBox(self, event):
|
def EvtListBox(self, event):
|
||||||
self.log.WriteText('EvtListBox: %s, %s, %s\n' %
|
self.log.WriteText('EvtListBox: %s, %s, %s, %s\n' %
|
||||||
(event.GetString(), event.IsSelection(), event.GetSelection()))
|
(event.GetString(),
|
||||||
|
event.IsSelection(),
|
||||||
|
event.GetSelection(),
|
||||||
|
event.GetClientData()))
|
||||||
|
|
||||||
lb = event.GetEventObject()
|
lb = event.GetEventObject()
|
||||||
data = lb.GetClientData(lb.GetSelection())
|
data = lb.GetClientData(lb.GetSelection())
|
||||||
|
Reference in New Issue
Block a user