Logo Search packages:      
Sourcecode: pythoncard version File versions  Download package

def textRouter::TextRouter::on_menuFileSaveAs_select (   self,

Saves the text to a file chosen by dialog box.

Definition at line 269 of file textRouter.py.

00269                                              :
        """Saves the text to a file chosen by dialog box."""
        result = dialog.fileDialog(self, 'Save As...', self.generalPrefs["defaultDirectory"],\
                                "text.txt", "*", wx.SAVE)
        if result.accepted:
            path = result.paths[0]

            self.stateSettings["defaultFileSave"] = path
            self.status("Save cancelled.")

    ## -- MENU: FILE: Load + Save Config File --

Generated by  Doxygen 1.6.0   Back to index