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

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

Definition at line 2596 of file textRouter.py.

02596                             :
        """ """
        try:
            textFile = open(path, "w")
        except IOError, e:
            self.status("Can't open file (%s) for writing: " % e)
            return 0
        
        textFile.write(self.getOutputText())
        
        if len(self.components.area1.text) > 0 and self.components.area1.text[-1] != "\n":
            textFile.write("\n")
        textFile.close()
        self.status("Text saved to file '%s'." % path)
        return 1
            
    def saveConfig(self, configFile = "textRouter.conf"):


Generated by  Doxygen 1.6.0   Back to index