;ò r`4Dc@s’dkZdeifd„ƒYZd„ZdZedjoPdkZdkZdkZei dei i ei dƒgei dƒndS( Ns TestComboBoxcBs>tZd„Zd„Zd„Zd„Zd„Zd„ZRS(NcCsdGH|iƒdS(Ns OnSetFocus(sevtsSkip(sselfsevt((sh/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/ComboBox.pys OnSetFocusscCsdGH|iƒdS(Ns OnKillFocus(sevtsSkip(sselfsevt((sh/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/ComboBox.pys OnKillFocus sc Cs¬||_tii||dƒdddddddd d g }ti|dd d d fƒti|ddddfddfƒti|ddddfddf|ti ƒ}|i ti |i |ƒ|i ti|i|ƒ|i ti|i|ƒ|i ti|iƒ|i ti|iƒ|iddƒti|ddddfddfgti ƒ}x$|D]}|i||iƒƒqoW|i ti |i |ƒdS(Niÿÿÿÿszerosonestwosthreesfoursfivessixssevenseights*This example uses the wx.ComboBox control.ii s Select one:ii2iKiiôs default valueiZi_sfoos&This is some client data for this itemiõiP(slogsselfswxsPanels__init__sparents sampleLists StaticTextsComboBoxs CB_DROPDOWNscbsBinds EVT_COMBOBOXs EvtComboBoxsEVT_TEXTsEvtTextsEVT_TEXT_ENTERs EvtTextEnters EVT_SET_FOCUSs OnSetFocussEVT_KILL_FOCUSs OnKillFocussAppendsitemsupper(sselfsparentslogscbs sampleListsitem((sh/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/ComboBox.pys__init__s$ !%0cCsl|iƒ}|i|iƒƒ}|iid|i ƒ|fƒ|i ƒdjo|iidƒndS(NsEvtComboBox: %s ClientData: %s sonesYou follow directions well! ( sevtsGetEventObjectscbs GetClientDatas GetSelectionsdatasselfslogs WriteTexts GetString(sselfsevtscbsdata((sh/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/ComboBox.pys EvtComboBox4s   cCs(|iid|iƒƒ|iƒdS(Ns EvtText: %s (sselfslogs WriteTextsevts GetStringsSkip(sselfsevt((sh/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/ComboBox.pysEvtText=scCs(|iid|iƒƒ|iƒdS(NsEvtTextEnter: %s(sselfslogs WriteTextsevts GetStringsSkip(sselfsevt((sh/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/ComboBox.pys EvtTextEnterCs(s__name__s __module__s OnSetFocuss OnKillFocuss__init__s EvtComboBoxsEvtTexts EvtTextEnter(((sh/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/ComboBox.pys TestComboBoxs    % cCst||ƒ}|SdS(N(s TestComboBoxsnbslogswin(sframesnbslogswin((sh/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/ComboBox.pysrunTestIssIA ComboBox is like a combination of an edit control and a listbox. It can be displayed as static list with editable or read-only text field; or a drop-down list with text field; or a drop-down list without a text field. This example shows both a preset ComboBox and one that is dynamically created (that is, it is initially empty but then we 'grow' it out of program-supplied data). The former is common for read-only controls. This example also shows the two form factors for the ComboBox. The first is more common, and resembles a Choice control. The latter, although less common, shows how all the values in the ComboBox can be visible, yet the functionality is the same for both. Finally, this demo shows how event handling can differ. The first ComboBox is set up to handle EVT_TEXT_ENTER events, in which text is typed in and then ENTER is hit by the user. This allows the user to enter a line of text which can then be processed by the program. EVT_TEXT can also be processed, but in that case the event is generated every time that the user hits a key in the ComboBox entry field. s__main__sii( swxsPanels TestComboBoxsrunTestsoverviews__name__ssyssossrunsmainspathsbasenamesargv(s TestComboBoxsrunsoverviewsrunTestssyssosswx((sh/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/ComboBox.pys?s C