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:
@@ -37,7 +37,6 @@ import sys
|
||||
# Gramps modules
|
||||
#
|
||||
#------------------------------------------------------------------------
|
||||
from gui.utils import open_file_with_default_application
|
||||
import libcairodoc
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
@@ -124,6 +123,3 @@ class PdfDoc(libcairodoc.CairoDoc):
|
||||
# if we don't restore the resolution.
|
||||
fontmap.set_resolution(saved_resolution)
|
||||
|
||||
# load the result into an external viewer
|
||||
if self.open_req:
|
||||
open_file_with_default_application(self._backend.filename)
|
||||
|
Reference in New Issue
Block a user