QScintilla/Exporters/__init__.py

changeset 12
1d8dd9706f46
parent 0
de9c2efb9d02
child 13
1af94a91f439
equal deleted inserted replaced
11:b0996e4a289e 12:1d8dd9706f46
34 @param editor reference to the editor object (QScintilla.Editor.Editor) 34 @param editor reference to the editor object (QScintilla.Editor.Editor)
35 @return reference to the instanciated exporter object (QScintilla.Exporter.Exporter) 35 @return reference to the instanciated exporter object (QScintilla.Exporter.Exporter)
36 """ 36 """
37 try: 37 try:
38 if format == "HTML": 38 if format == "HTML":
39 from ExporterHTML import ExporterHTML 39 from .ExporterHTML import ExporterHTML
40 return ExporterHTML(editor) 40 return ExporterHTML(editor)
41 elif format == "PDF": 41 elif format == "PDF":
42 from ExporterPDF import ExporterPDF 42 from .ExporterPDF import ExporterPDF
43 return ExporterPDF(editor) 43 return ExporterPDF(editor)
44 elif format == "RTF": 44 elif format == "RTF":
45 from ExporterRTF import ExporterRTF 45 from .ExporterRTF import ExporterRTF
46 return ExporterRTF(editor) 46 return ExporterRTF(editor)
47 elif format == "TeX": 47 elif format == "TeX":
48 from ExporterTEX import ExporterTEX 48 from .ExporterTEX import ExporterTEX
49 return ExporterTEX(editor) 49 return ExporterTEX(editor)
50 except ImportError: 50 except ImportError:
51 return None 51 return None

eric ide

mercurial