;ò \TŸBc@s¡dkZdkZdZdeifd„ƒYZd„ZdZedjoPdkZdkZdk Z e i dei i ei dƒgei d ƒndS( Ns}Python source (*.py)|*.py|Compiled Python (*.pyc)|*.pyc|SPAM files (*.spam)|*.spam|Egg file (*.egg)|*.egg|All files (*.*)|*.*s TestPanelcBs#tZd„Zd„Zd„ZRS(NcCs‘||_tii||dƒti|ddddfƒ}|iti |i |ƒti|ddddfƒ}|iti |i |ƒdS(Niÿÿÿÿs"Create and Show an OPEN FileDialogi2s!Create and Show a SAVE FileDialogiZ( slogsselfswxsPanels__init__sparentsButtonsbsBinds EVT_BUTTONsOnButtons OnButton2(sselfsparentslogsb((sj/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/FileDialog.pys__init__s  c Csë|iidtiƒƒti|dddtiƒdddtdtiti Bti Bƒ}|i ƒti joO|iƒ}|iid t|ƒƒx&|D]}|iid |ƒq¡Wn|iidtiƒƒ|iƒdS( NsCWD: %s smessages Choose a files defaultDirs defaultFilesswildcardsstylesYou selected %d files:s %s (sselfslogs WriteTextsossgetcwdswxs FileDialogswildcardsOPENsMULTIPLEs CHANGE_DIRsdlgs ShowModalsID_OKsGetPathsspathsslenspathsDestroy(sselfsevtspathssdlgspath((sj/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/FileDialog.pysOnButtons ) c Cs¿|iidtiƒƒti|dddtiƒdddtdtiƒ}|i d ƒ|i ƒti jo$|i ƒ}|iid |ƒn|iidtiƒƒ|iƒdS( NsCWD: %s smessagesSave file as ...s defaultDirs defaultFilesswildcardsstyleisYou selected "%s"(sselfslogs WriteTextsossgetcwdswxs FileDialogswildcardsSAVEsdlgsSetFilterIndexs ShowModalsID_OKsGetPathspathsDestroy(sselfsevtsdlgspath((sj/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/FileDialog.pys OnButton2@s   (s__name__s __module__s__init__sOnButtons OnButton2(((sj/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/FileDialog.pys TestPanels #cCst||ƒ}|SdS(N(s TestPanelsnbslogswin(sframesnbslogswin((sj/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/FileDialog.pysrunTesttssThis class provides the file selection dialog. It incorporates OS-native features depending on the OS in use, and can be used both for open and save operations. The files displayed can be filtered by setting up a wildcard filter, multiple files can be selected (open only), and files can be forced in a read-only mode. There are two ways to get the results back from the dialog. GetFiles() returns only the file names themselves, in a Python list. GetPaths() returns the full path and filenames combined as a Python list. s__main__sii(sosswxswildcardsPanels TestPanelsrunTestsoverviews__name__ssyssrunsmainspathsbasenamesargv(ssyssrunsoverviewsrunTestswildcardswxsoss TestPanel((sj/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/FileDialog.pys?s  c