2008-02-18 Raphael Ackermann <raphael.ackermann@gmail.com>
* src/* 143 files
* test/try_tree_model.py
* windows/nsis/gcheck.py
imports cleanup
svn: r10055
This commit is contained in:
@@ -31,7 +31,6 @@ from _Constants import CATEGORY_TEXT, CATEGORY_DRAW, CATEGORY_BOOK
|
||||
from _PaperMenu import paper_sizes
|
||||
import os
|
||||
import const
|
||||
from Filters import CustomFilters
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
#
|
||||
|
||||
@@ -50,8 +50,7 @@ import Config
|
||||
from _Constants import CATEGORY_GRAPHVIZ
|
||||
from _ReportDialog import ReportDialog
|
||||
from _PaperMenu import PaperFrame
|
||||
from PluginUtils import NumberOption, EnumeratedListOption, \
|
||||
TextOption, BooleanOption
|
||||
from PluginUtils import NumberOption, EnumeratedListOption, TextOption
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
#
|
||||
|
||||
@@ -34,6 +34,7 @@ import os
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
import gtk
|
||||
from gtk import glade
|
||||
import gobject
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
@@ -147,7 +148,7 @@ class PaperFrame(gtk.HBox):
|
||||
margins=[2.54,2.54,2.54,2.54], custom=[29.7,21.0]):
|
||||
gtk.HBox.__init__(self)
|
||||
glade_file = os.path.join(const.GLADE_DIR, "paper_settings.glade")
|
||||
glade_xml = gtk.glade.XML(glade_file, "paper_table", "gramps")
|
||||
glade_xml = glade.XML(glade_file, "paper_table", "gramps")
|
||||
|
||||
self.paper_table = glade_xml.get_widget('paper_table')
|
||||
|
||||
|
||||
@@ -22,21 +22,6 @@
|
||||
|
||||
# $Id$
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# python
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from gettext import gettext as _
|
||||
import gtk
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Gramps modules
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
import Utils
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Report
|
||||
|
||||
@@ -46,19 +46,12 @@ import gtk
|
||||
#-------------------------------------------------------------------------
|
||||
import Config
|
||||
import Errors
|
||||
import Utils
|
||||
import const
|
||||
|
||||
from QuestionDialog import ErrorDialog, OptionDialog, RunDatabaseRepair
|
||||
|
||||
from _Constants import CATEGORY_TEXT, CATEGORY_DRAW, CATEGORY_BOOK, \
|
||||
CATEGORY_VIEW, CATEGORY_CODE, CATEGORY_WEB, CATEGORY_GRAPHVIZ, \
|
||||
standalone_categories
|
||||
from QuestionDialog import ErrorDialog, OptionDialog
|
||||
from _Constants import (CATEGORY_TEXT, CATEGORY_DRAW, CATEGORY_BOOK,
|
||||
CATEGORY_VIEW, CATEGORY_CODE, CATEGORY_WEB,
|
||||
CATEGORY_GRAPHVIZ, standalone_categories)
|
||||
from _BareReportDialog import BareReportDialog
|
||||
from _FileEntry import FileEntry
|
||||
from _PaperMenu import PaperComboBox, OrientationComboBox, paper_sizes
|
||||
from _TemplateParser import _template_map, _default_template, _user_template
|
||||
from BaseDoc import PaperStyle
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
|
||||
@@ -75,7 +75,7 @@ class StyleListDisplay:
|
||||
self.callback = callback
|
||||
|
||||
self.sheetlist = stylesheetlist
|
||||
self.top = gtk.glade.XML(const.GLADE_FILE, "styles", "gramps")
|
||||
self.top = glade.XML(const.GLADE_FILE, "styles", "gramps")
|
||||
self.window = self.top.get_widget('styles')
|
||||
|
||||
ManagedWindow.set_titles( self.window,
|
||||
@@ -187,7 +187,7 @@ class StyleEditor:
|
||||
|
||||
self.style = BaseDoc.StyleSheet(style)
|
||||
self.parent = parent
|
||||
self.top = gtk.glade.XML(const.GLADE_FILE, "editor", "gramps")
|
||||
self.top = glade.XML(const.GLADE_FILE, "editor", "gramps")
|
||||
|
||||
self.top.signal_autoconnect({
|
||||
"on_save_style_clicked" : self.on_save_style_clicked,
|
||||
|
||||
Reference in New Issue
Block a user