;ò :òcBc@sÄdkZeiƒZeieƒdeifd„ƒYZdeifd„ƒYZd„ZdZ e djoPdk Z dk Z dk Z e ide iie id ƒge id ƒndS( Ns TestDialogcBs#tZeieieid„ZRS(NcCsltiƒ}|itiƒ|i||||||ƒ|i |ƒtitiƒ} ti|ddƒ} | idƒ| i| dtitiBdƒtitiƒ}ti|ddƒ} | idƒ|i| dtitiBdƒti|dddd dfƒ} | id ƒ|i| d titiBdƒ| i|dtitiBtiBdƒtitiƒ}ti|dd ƒ} | idƒ|i| dtitiBdƒti|dddd dfƒ} | id ƒ|i| d titiBdƒ| i|dtitiBtiBdƒti|ddddfdtiƒ}| i|dtitiBti Bti!Bdƒti"ƒ} ti$djo ti%|ƒ} | i'| ƒnti(|ti)ƒ} | idƒ| i*ƒ| i'| ƒti(|ti+ƒ} | idƒ| i'| ƒ| i,ƒ| i| dtitiBdƒ|i-| ƒ| i.|ƒdS(NiÿÿÿÿsThis is a wx.Dialogs#This is the help text for the labeliis Field #1:sssizeiPs"Here's some help text for field #1is Field #2:s"Here's some help text for field #2isstyles __WXMSW__s"The OK button completes the dialogs2The Cancel button cnacels the dialog. (Cool, huh?)(/swxs PreDialogspres SetExtraStylesDIALOG_EX_CONTEXTHELPsCreatesparentsIDstitlesposssizesstylesselfs PostCreatesBoxSizersVERTICALssizers StaticTextslabels SetHelpTextsAdds ALIGN_CENTREsALLs HORIZONTALsboxsTextCtrlstextsGROWsALIGN_CENTER_VERTICALs StaticLines LI_HORIZONTALslinesRIGHTsTOPsStdDialogButtonSizersbtnsizersPlatformsContextHelpButtonsbtns AddButtonsButtonsID_OKs SetDefaults ID_CANCELsRealizesSetSizersFit(sselfsparentsIDstitlessizespossstylespresboxsbtnsizerssizerstextslabelsbtnsline((sf/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/Dialog.pys__init__ sR      !  '  !  ''.         (s__name__s __module__swxs DefaultSizesDefaultPositionsDEFAULT_DIALOG_STYLEs__init__(((sf/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/Dialog.pys TestDialog ss TestPanelcBstZd„Zd„ZRS(NcCsZ||_tii||dƒti|ddddfƒ}|iti |i |ƒdS(NiÿÿÿÿsCreate and Show a custom Dialogi2( slogsselfswxsPanels__init__sparentsButtonsbsBinds EVT_BUTTONsOnButton(sselfsparentslogsb((sf/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/Dialog.pys__init__Zs cCst|dddddfdtiƒ}|iƒ|iƒ}|tijo|i i dƒn|i i dƒ|i ƒdS( NiÿÿÿÿsThis is a Dialogssizei^iÈsstylesYou pressed OK sYou pressed Cancel ( s TestDialogsselfswxsDEFAULT_DIALOG_STYLEsdlgsCenterOnScreens ShowModalsvalsID_OKslogs WriteTextsDestroy(sselfsevtsdlgsval((sf/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/Dialog.pysOnButtonbs  (s__name__s __module__s__init__sOnButton(((sf/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/Dialog.pys TestPanelYs cCst||ƒ}|SdS(N(s TestPanelsnbslogswin(sframesnbslogswin((sf/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/Dialog.pysrunTestwssÔwxPython offers quite a few general purpose dialogs for useful data input from the user; they are all based on the wx.Dialog class, which you can also subclass to create custom dialogs to suit your needs. The Dialog class, in addition to dialog-like behaviors, also supports the full wxWindows layout featureset, which means that you can incorporate sizers or layout constraints as needed to achieve the look and feel desired. It even supports context-sensitive help, which is illustrated in this example. The example is very simple; in real world situations, a dialog that had input fields such as this would no doubt be required to deliver those values back to the calling function. The Dialog class supports data retrieval in this manner. However, the data must be retrieved prior to the dialog being destroyed. The example shown here is modal; non-modal dialogs are possible as well. See the documentation for the Dialog class for more details. s__main__sii(swxsSimpleHelpProvidersprovidersHelpProvider_SetsDialogs TestDialogsPanels TestPanelsrunTestsoverviews__name__ssyssossrunsmainspathsbasenamesargv( ssyssruns TestDialogsoverviewsrunTestsproviderswxsoss TestPanel((sf/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/Dialog.pys?s   M