示例#1
0
    def on_actionNewFileFromTemplate_triggered(self):
        filePath = PMXNewFromTemplateDialog.newFileFromTemplate(parent = self)

        if filePath:
            self.application.openFile(filePath)
示例#2
0
 def createFileFromTemplate(self, directory):
     return PMXNewFromTemplateDialog.newFileFromTemplate(
         fileDirectory=directory, parent=self)
示例#3
0
 def createFileFromTemplate(self, directory):
     return PMXNewFromTemplateDialog.newFileFromTemplate(fileDirectory = directory,  parent = self)
示例#4
0
    def on_actionNewFromTemplate_triggered(self):
        filePath = PMXNewFromTemplateDialog.newFileFromTemplate(parent=self)

        if filePath:
            self.application.openFile(filePath)
示例#5
0
 def createFileFromTemplate(self, basePath):
     fileDirectory = self.application.fileManager.getDirectory(basePath)
     return PMXNewFromTemplateDialog.newFileFromTemplate(fileDirectory = fileDirectory,  parent = self)