def __init__(self, dbstate, engine):
"""
The manager is initialised with a dbstate on which GRAMPS is
working, and the engine to use context from.
"""
self.dbstate = dbstate
QtCore.QObject.__init__(self)
self.const = {
'titlelabel': "%s" % self.dbstate.db.get_dbname(),
}
#there is one DeclarativeEngine for global settings
self.__build_main_window(engine)
评论列表
文章目录