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

def textRouter::TextRouter::on_menuFileLoadFrom_select (   self,
  event 
)

Load a file from disk and insert/append/overwrite it in to the main text box.

Definition at line 242 of file textRouter.py.

00242                                                :
        """Load a file from disk and insert/append/overwrite it in to the main text box."""
        #print "on_menuFileLoadFrom_select: entered"

        result = dialog.fileDialog(self, 'Open...', \
                                self.generalPrefs["defaultDirectory"], '', \
                                "*")
        if result.accepted:
            path = result.paths[0]
        else:
            self.status("File insert cancelled.")
            return 0

        self.insertFile(path)
        self.stateSettings["defaultFileLoad"] = path

        self.saveState()


    ## -- MENU: FILE: Save Text --


Generated by  Doxygen 1.6.0   Back to index