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

def textRouter::TextRouter::insertFile (   self,
  path 
)

Given a filename this method opens it, and add's it to the main text box.

Definition at line 2314 of file textRouter.py.

02314                               :
        """Given a filename this method opens it, and add's it to the main text box."""
        try:
            file = open(path, "r")
        except IOError, e:
            self.status("Can't open file (%s) for inserting: " % e)
            return 0
        
        data = file.read()
        file.close()
        
        actionStr = self.updateTextBox(data)
        self.status("File '%s' %s." % (path, actionStr))
        return 1


    def getOutputText(self):


Generated by  Doxygen 1.6.0   Back to index