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:
po
src
cli
plug
gen
plug
docgen
gui
plugins
@ -35,11 +35,9 @@ from gen.ggettext import gettext as _
|
||||
# Gramps modules
|
||||
#
|
||||
#------------------------------------------------------------------------
|
||||
from gui.utils import open_file_with_default_application
|
||||
from gen.plug.docgen import (BaseDoc, TextDoc,
|
||||
PARA_ALIGN_RIGHT, PARA_ALIGN_CENTER)
|
||||
import Errors
|
||||
import Utils
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
#
|
||||
@ -165,9 +163,6 @@ class AsciiDoc(BaseDoc,TextDoc):
|
||||
def close(self):
|
||||
self.f.close()
|
||||
|
||||
if self.open_req:
|
||||
open_file_with_default_application(self.filename)
|
||||
|
||||
def get_usable_width(self):
|
||||
return _WIDTH_IN_CHARS
|
||||
|
||||
|
Reference in New Issue
Block a user