def on_actionNewFileFromTemplate_triggered(self): filePath = PMXNewFromTemplateDialog.newFileFromTemplate(parent = self) if filePath: self.application.openFile(filePath)
def createFileFromTemplate(self, directory): return PMXNewFromTemplateDialog.newFileFromTemplate( fileDirectory=directory, parent=self)
def createFileFromTemplate(self, directory): return PMXNewFromTemplateDialog.newFileFromTemplate(fileDirectory = directory, parent = self)
def on_actionNewFromTemplate_triggered(self): filePath = PMXNewFromTemplateDialog.newFileFromTemplate(parent=self) if filePath: self.application.openFile(filePath)
def createFileFromTemplate(self, basePath): fileDirectory = self.application.fileManager.getDirectory(basePath) return PMXNewFromTemplateDialog.newFileFromTemplate(fileDirectory = fileDirectory, parent = self)