A few comments tweaked

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25423 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2004-01-31 01:19:44 +00:00
parent 2b9048c56f
commit 0d6ff08218

View File

@@ -35,7 +35,7 @@ class TestComboBox(wx.Panel):
cb.Bind(wx.EVT_SET_FOCUS, self.OnSetFocus) cb.Bind(wx.EVT_SET_FOCUS, self.OnSetFocus)
cb.Bind(wx.EVT_KILL_FOCUS, self.OnKillFocus) cb.Bind(wx.EVT_KILL_FOCUS, self.OnKillFocus)
# Once the combobox is set up, we append some more data to it. # Once the combobox is set up, we can append some more data to it.
cb.Append("foo", "This is some client data for this item") cb.Append("foo", "This is some client data for this item")
# This combobox is created with no values initially. # This combobox is created with no values initially.
@@ -49,7 +49,7 @@ class TestComboBox(wx.Panel):
self.Bind(wx.EVT_COMBOBOX, self.EvtComboBox, cb) self.Bind(wx.EVT_COMBOBOX, self.EvtComboBox, cb)
self.Bind(wx.EVT_COMBOBOX, self.EvtText, cb) self.Bind(wx.EVT_COMBOBOX, self.EvtText, cb)
# The user selects something, we go here. # When the user selects something, we go here.
def EvtComboBox(self, evt): def EvtComboBox(self, evt):
cb = evt.GetEventObject() cb = evt.GetEventObject()
data = cb.GetClientData(cb.GetSelection()) data = cb.GetClientData(cb.GetSelection())