def save(self, pdf=True, rtf=True): if self.path == None: self.path = self.uniquePath() try: os.path.split(self.path) except: _dialog.saveFile(self.control) return else: # self.control.saveDir = os.path.split(self.path)[0] + '/' self._save(self.path, pdf=pdf, rtf=rtf) return
def save(self,): if self.path == None: _dialog.saveFile(self.control) else: self._save(self.path)