def __init__(self, plugin, attachment_folder=None): ImageGeneratorClass.__init__(self, plugin) file = data_file('templates/plugins/gnuploteditor.gnu') assert file, 'BUG: could not find templates/plugins/gnuploteditor.gnu' self.template = GenericTemplate(file.readlines(), name=file) self.attachment_folder = attachment_folder self.plotscriptfile = TmpFile(self.scriptname)
def __init__(self, plugin): ImageGeneratorClass.__init__(self, plugin) self.template = get_template('plugins', 'scoreeditor.ly') self.scorefile = TmpFile(self.scriptname) self.cur_lilypond_version = _get_lilypond_version() self.include_header = plugin.preferences['include_header'] self.include_footer = plugin.preferences['include_footer']
def __init__(self, plugin): ImageGeneratorClass.__init__(self, plugin) file = data_file('templates/plugins/scoreeditor.ly') assert file, 'BUG: could not find templates/plugins/scoreeditor.ly' self.template = GenericTemplate(file.readlines(), name=file) self.scorefile = TmpFile(self.scriptname) self.cur_lilypond_version = _get_lilypond_version() self.include_header = plugin.preferences['include_header'] self.include_footer = plugin.preferences['include_footer']
def __init__(self, plugin): ImageGeneratorClass.__init__(self, plugin) self.diagfile = TmpFile(self.scriptname) self.diagfile.touch() self.pngfile = File(self.diagfile.path[:-5] + '.png') # len('.diag') == 5
def __init__(self, plugin, notebook, page): ImageGeneratorClass.__init__(self, plugin, notebook, page) self.dotfile = TmpFile('umldiagram.puml') self.dotfile.touch() self.pngfile = File(self.dotfile.path[:-5] + '.png') # len('.puml') == 5
def __init__(self, plugin): ImageGeneratorClass.__init__(self, plugin) file = data_file('templates/plugins/equationeditor.tex') assert file, 'BUG: could not find templates/plugins/equationeditor.tex' self.template = GenericTemplate(file.readlines(), name=file) self.texfile = TmpFile(self.scriptname)
def __init__(self, plugin): ImageGeneratorClass.__init__(self, plugin) self.dotfile = TmpFile(self.scriptname) self.dotfile.touch() self.pngfile = File(self.dotfile.path[:-4] + '.png') # len('.dot') == 4
def __init__(self, plugin, notebook, page): ImageGeneratorClass.__init__(self, plugin, notebook, page) self.template = get_template('plugins', 'gnu_r_editor.r') self.plotscriptfile = TmpFile('gnu_r_plot.r')
def __init__(self, plugin, notebook, page): ImageGeneratorClass.__init__(self, plugin, notebook, page) self.template = get_template('plugins', 'equationeditor.tex') self.texfile = TmpFile('equation.tex')
def __init__(self, plugin): ImageGeneratorClass.__init__(self, plugin) self.template = get_template('plugins', 'equationeditor.tex') self.texfile = TmpFile(self.scriptname)
def __init__(self, plugin, notebook, page): ImageGeneratorClass.__init__(self, plugin, notebook, page) self.dotfile = TmpFile('plantuml.pu') self.dotfile.touch() self.pngfile = File(self.dotfile.path[:-3] + '.png') # len('.pu') == 3
def __init__(self, plugin, notebook, page): ImageGeneratorClass.__init__(self, plugin, notebook, page) self.texfile = TmpFile('latex.tex') print('[PLUGINS:INSERT LATEX] text file: %s' % self.texfile)
def __init__(self, plugin): ImageGeneratorClass.__init__(self, plugin) self.template = get_template('plugins', 'gnu_r_editor.r') self.plotscriptfile = TmpFile(self.scriptname)
def __init__(self, plugin, attachment_folder=None): ImageGeneratorClass.__init__(self, plugin) self.template = get_template('plugins', 'gnuploteditor.gnu') self.attachment_folder = attachment_folder self.plotscriptfile = TmpFile(self.scriptname)
def __init__(self, plugin): ImageGeneratorClass.__init__(self, plugin) self.dotfile = TmpFile(self.scriptname) self.dotfile.touch() self.pngfile = File(self.dotfile.path[:-4] + ".png") # len('.dot') == 4
def __init__(self, plugin, notebook, page): ImageGeneratorClass.__init__(self, plugin, notebook, page) self.template = get_template('plugins', 'gnuploteditor.gnu') self.attachment_folder = notebook.get_attachments_dir(page) self.plotscriptfile = TmpFile('gnuplot.gnu')