From fd210a00cc648af87fdaddb3eddaf190580b1ae8 Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Sat, 6 Mar 2004 00:08:09 +0000 Subject: [PATCH] Minor cleanups svn: r2973 --- src/docgen/LPRDoc.py | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/src/docgen/LPRDoc.py b/src/docgen/LPRDoc.py index 6bf25b2d1..2023a24ec 100644 --- a/src/docgen/LPRDoc.py +++ b/src/docgen/LPRDoc.py @@ -34,10 +34,15 @@ # #------------------------------------------------------------------------ import string +from gettext import gettext as _ + +#------------------------------------------------------------------------ +# +# GNOME/GTK Modules +# +#------------------------------------------------------------------------ +import gnomeprint, gnomeprint.ui -import pygtk - -import gnomeprint, gnomeprint.ui, gtk #------------------------------------------------------------------------ # # gramps modules @@ -46,7 +51,6 @@ import gnomeprint, gnomeprint.ui, gtk import BaseDoc import Plugins import ImgManip -from gettext import gettext as _ #------------------------------------------------------------------------ # @@ -322,7 +326,9 @@ class GnomePrintParagraph: def get_lines(self): """ - Return a list of assemlbed for the paragraph. + Return a list of assemlbed lines for the paragraph. + Each element is a tuple corresponding to the line's contents: + (start_piece,start_word,end_piece,end_word,avail_width) """ return self.lines