;ò ÃÏ@c@s’dkZdeifd„ƒYZd„ZdZedjoPdkZdkZdkZei dei i ei dƒgei dƒndS( Ns TestChoicecBstZd„Zd„ZRS(Nc CsÅ||_tii||dƒdddddddd d g }ti|dd d d fƒti|ddd dfddfƒti|dddfd|ƒ|_ |i ti |i |i ƒdS(Niÿÿÿÿszerosonestwosthreesfoursfivessixssevenseights'This example uses the wxChoice control.ii s Select one:i2iKidschoices( slogsselfswxsPanels__init__sparents sampleLists StaticTextsChoiceschsBinds EVT_CHOICEs EvtChoice(sselfsparentslogs sampleList((sf/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/Choice.pys__init__s !%$cCsU|iid|iƒƒ|iidƒ|iƒdjo|iidƒndS(NsEvtChoice: %s s A new itemsones Well done! (sselfslogs WriteTextsevents GetStringschsAppend(sselfsevent((sf/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/Choice.pys EvtChoices(s__name__s __module__s__init__s EvtChoice(((sf/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/Choice.pys TestChoices cCst||ƒ}|SdS(N(s TestChoicesnbslogswin(sframesnbslogswin((sf/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/Choice.pysrunTestssÏ A Choice control is used to select one of a list of strings. Unlike a listbox, only the current selection is visible until the user pulls down the menu of choices. This demo illustrates how to set up the Choice control and how to extract the selected choice once it is selected. Note that the syntax of the constructor is different than the C++ implementation. The number of choices and the choice array are consilidated into one python list. s__main__sii( swxsPanels TestChoicesrunTestsoverviews__name__ssyssossrunsmainspathsbasenamesargv(ssyssrunsoverviewsrunTestswxsoss TestChoice((sf/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/Choice.pys?s