;ň ”ăúAc@sűdkZdkiZdkZd„Zdeifd„ƒYZdeifd„ƒYZ deifd„ƒYZ dei fd „ƒYZ d „Z d Zed joPdkZdkZdkZeid eiieidƒgeidƒndS(NcCs°titiƒ}|i|ƒti|d|ƒ}|iti dti ti ti ƒƒ|i |dtitiBdƒ|i ti|dƒdtitiBdƒ|SdS(Ni˙˙˙˙iii(swxsBoxSizersVERTICALssizerswizPgsSetSizers StaticTextstitlesSetFontsFontsSWISSsNORMALsBOLDsAdds ALIGN_CENTREsALLs StaticLinesEXPAND(swizPgstitlessizer((sf/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/Wizard.pys makePageTitles ( ,s TitledPagecBstZd„ZRS(NcCs)tii||ƒt||ƒ|_dS(N(swizsWizardPageSimples__init__sselfsparents makePageTitlestitlessizer(sselfsparentstitle((sf/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/Wizard.pys__init__s(s__name__s __module__s__init__(((sf/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/Wizard.pys TitledPagess SkipNextPagecBs5tZd„Zd„Zd„Zd„Zd„ZRS(NcCsptii||ƒt|_|_t||ƒ|_ t i |ddƒ|_ |i i|i dt idƒdS(Ni˙˙˙˙sSkip next pageii(swizs PyWizardPages__init__sselfsparentsNonesnextsprevs makePageTitlestitlessizerswxsCheckBoxscbsAddsALL(sselfsparentstitle((sf/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/Wizard.pys__init__s cCs ||_dS(N(snextsself(sselfsnext((sf/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/Wizard.pysSetNext$scCs ||_dS(N(sprevsself(sselfsprev((sf/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/Wizard.pysSetPrev'scCs1|i}|iiƒo|iƒ}n|SdS(s<If the checkbox is set then return the next page's next pageN(sselfsnextscbsGetValuesGetNext(sselfsnext((sf/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/Wizard.pysGetNext0s  cCs |iSdS(N(sselfsprev(sself((sf/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/Wizard.pysGetPrev7s(s__name__s __module__s__init__sSetNextsSetPrevsGetNextsGetPrev(((sf/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/Wizard.pys SkipNextPages    sUseAltBitmapPagecBs>tZd„Zd„Zd„Zd„Zd„Zd„ZRS(NcCsdtii||ƒt|_|_t||ƒ|_ |i i t i |ddƒdt idƒdS(Ni˙˙˙˙s!This page uses a different bitmapii(swizs PyWizardPages__init__sselfsparentsNonesnextsprevs makePageTitlestitlessizersAddswxs StaticTextsALL(sselfsparentstitle((sf/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/Wizard.pys__init__=s cCs ||_dS(N(snextsself(sselfsnext((sf/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/Wizard.pysSetNextEscCs ||_dS(N(sprevsself(sselfsprev((sf/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/Wizard.pysSetPrevHscCs |iSdS(N(sselfsnext(sself((sf/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/Wizard.pysGetNextKscCs |iSdS(N(sselfsprev(sself((sf/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/Wizard.pysGetPrevNscCstiƒSdS(N(simagessgetWizTest2Bitmap(sself((sf/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/Wizard.pys GetBitmapQs(s__name__s __module__s__init__sSetNextsSetPrevsGetNextsGetPrevs GetBitmap(((sf/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/Wizard.pysUseAltBitmapPage<s      s TestPanelcBsGtZd„Zd„Zd„Zd„Zd„Zd„Zd„ZRS(NcCsŮ||_tii||dƒti|dddddfƒ}|iti |i |ƒti|dddddfƒ}|iti |i |ƒ|it i |iƒ|it i|iƒ|it i|iƒdS(Ni˙˙˙˙sRun Simple Wizardsposi2sRun Dynamic Wizardid(slogsselfswxsPanels__init__sparentsButtonsbsBinds EVT_BUTTONsOnRunSimpleWizardsOnRunDynamicWizardswizsEVT_WIZARD_PAGE_CHANGEDsOnWizPageChangedsEVT_WIZARD_PAGE_CHANGINGsOnWizPageChangingsEVT_WIZARD_CANCELs OnWizCancel(sselfsparentslogsb((sf/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/Wizard.pys__init__^s !!cCsJ|iƒo d}nd}|iƒ}|iid||ifƒdS(NsforwardsbackwardsOnWizPageChanged: %s, %s ( sevts GetDirectionsdirsGetPagespagesselfslogswrites __class__(sselfsevtspagesdir((sf/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/Wizard.pysOnWizPageChangedms    cCsJ|iƒo d}nd}|iƒ}|iid||ifƒdS(NsforwardsbackwardsOnWizPageChanging: %s, %s ( sevts GetDirectionsdirsGetPagespagesselfslogswrites __class__(sselfsevtspagesdir((sf/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/Wizard.pysOnWizPageChangingws    cCsU|iƒ}|iid|iƒ||ijoti ddƒ|i ƒndS(NsOnWizCancel: %s s0Cancelling on the first page has been prevented.sSorry( sevtsGetPagespagesselfslogswrites __class__spage1swxs MessageBoxsVeto(sselfsevtspage((sf/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/Wizard.pys OnWizCancels  cCs|iidƒdS(NsOnWizFinished (sselfslogswrite(sselfsevt((sf/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/Wizard.pys OnWizFinished‹scCsti|ddtiƒƒ}t|dƒ}t|dƒ}t|dƒ}t|dƒ}||_|i i t i|ddƒƒ|i|ƒ|i i t i|ddƒƒti||ƒti||ƒti||ƒ|i|ƒot id d ƒnt id d ƒdS( Ni˙˙˙˙s Simple WizardsPage 1sPage 2sPage 3sPage 4sé This wizard is totally useless, but is meant to show how to chain simple wizard pages together in a non-dynamic manner. IOW, the order of the pages never changes, and so the wxWizardPageSimple class can easily be used for the pages.s This is the last page.sWizard completed successfullysThat's all folks!sWizard was cancelled(swizsWizardsselfsimagessgetWizTest1Bitmapswizards TitledPagespage1spage2spage3spage4ssizersAddswxs StaticTexts FitToPagesWizardPageSimple_Chains RunWizards MessageBox(sselfsevtspage2swizardspage3spage4spage1((sf/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/Wizard.pysOnRunSimpleWizards    cCs]ti|ddtiƒƒ}t|dƒ}t|dƒ}t|dƒ}t |dƒ}t|dƒ}||_|iiti|ddƒƒ|i|ƒ|iiti|dd ƒƒ|i|ƒ|i|ƒ|i|ƒ|i|ƒ|i|ƒ|i|ƒ|i|ƒ|i|ƒ|i|ƒotid d ƒntid d ƒdS( Ni˙˙˙˙s Simple WizardsPage 1sPage 2sPage 3sPage 4sPage 5sk This wizard shows the ability to choose at runtime the order of the pages and also which bitmap is shown. s This is the last page.sWizard completed successfullysThat's all folks!sWizard was cancelled(swizsWizardsselfsimagessgetWizTest1Bitmapswizards TitledPagespage1s SkipNextPagespage2spage3sUseAltBitmapPagespage4spage5ssizersAddswxs StaticTexts FitToPagesSetNextsSetPrevs RunWizards MessageBox(sselfsevtspage2swizardspage3spage4spage5spage1((sf/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/Wizard.pysOnRunDynamicWizardŹs,           ( s__name__s __module__s__init__sOnWizPageChangedsOnWizPageChangings OnWizCancels OnWizFinishedsOnRunSimpleWizardsOnRunDynamicWizard(((sf/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/Wizard.pys TestPanel]s   cCst||ƒ}|SdS(N(s TestPanelsnbslogswin(sframesnbslogswin((sf/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/Wizard.pysrunTestÔss

wxWizard

wxWizard is the central class for implementing 'wizard-like' dialogs. These dialogs are mostly familiar to Windows users and are nothing else but a sequence of 'pages' each of them displayed inside a dialog which has the buttons to pass to the next (and previous) pages.

The wizards are typically used to decompose a complex dialog into several simple steps and are mainly useful to the novice users, hence it is important to keep them as simple as possible. s__main__sii(swxs wx.wizardswizardswizsimagess makePageTitlesWizardPageSimples TitledPages PyWizardPages SkipNextPagesUseAltBitmapPagesPanels TestPanelsrunTestsoverviews__name__ssyssossrunsmainspathsbasenamesargv( ssyssUseAltBitmapPagesruns TitledPagesoverviewsrunTests makePageTitles SkipNextPagesimagess TestPanelsosswizswx((sf/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/Wizard.pys?s    !!w