예제 #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)