X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/493f1553fdfd276ed9944c5f1c070ee34be13b52..80823340ab3da196d5225b7c7087f4b7a7dcc35e:/wxPython/demo/wxChoice.py diff --git a/wxPython/demo/wxChoice.py b/wxPython/demo/wxChoice.py index ceafc8be92..9cd83ce3b2 100644 --- a/wxPython/demo/wxChoice.py +++ b/wxPython/demo/wxChoice.py @@ -15,12 +15,14 @@ class TestChoice(wxPanel): wxPoint(15, 10)) wxStaticText(self, -1, "Select one:", wxPoint(15, 50), wxSize(75, 20)) - wxChoice(self, 40, (80, 50), (95, 125), - choices = sampleList) + self.ch = wxChoice(self, 40, (80, 50), choices = sampleList) EVT_CHOICE(self, 40, self.EvtChoice) + def EvtChoice(self, event): self.log.WriteText('EvtChoice: %s\n' % event.GetString()) + self.ch.Append("A new item") + #---------------------------------------------------------------------------