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