Separate some general code from GUI specific code - particularly for graph generators so that graphs can be generated from the CLI.

svn: r16838
This commit is contained in:
Brian Matherly
2011-03-17 03:02:36 +00:00
parent 12a01f6700
commit e6befe67b9
15 changed files with 959 additions and 1049 deletions

View File

@ -41,7 +41,6 @@ from bisect import bisect
# gramps modules
#
#------------------------------------------------------------------------
from gui.utils import open_file_with_default_application
from gen.plug.docgen import BaseDoc, TextDoc, PAPER_LANDSCAPE, FONT_SANS_SERIF
from gen.plug.docbackend import DocBackend
import ImgManip
@ -404,8 +403,6 @@ class LaTeXDoc(BaseDoc, TextDoc):
self._backend.write('\\end{enumerate}\n')
self._backend.write('\n\\end{document}\n')
self._backend.close()
if self.open_req:
open_file_with_default_application(self._backend.filename)
def end_page(self):
"""Issue a new page command"""