本文整理汇总了Python中gramps.gui.views.navigationview.NavigationView.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python NavigationView.__init__方法的具体用法?Python NavigationView.__init__怎么用?Python NavigationView.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类gramps.gui.views.navigationview.NavigationView
的用法示例。
在下文中一共展示了NavigationView.__init__方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from gramps.gui.views.navigationview import NavigationView [as 别名]
# 或者: from gramps.gui.views.navigationview.NavigationView import __init__ [as 别名]
def __init__(self, pdata, dbstate, uistate, nav_group=0):
self.dbstate = dbstate
self.uistate = uistate
NavigationView.__init__(self, _('Fan Chart'),
pdata, dbstate, uistate,
PersonBookmarks,
nav_group)
fanchart.FanChartGrampsGUI.__init__(self, self.on_childmenu_changed)
#set needed values
self.maxgen = self._config.get('interface.fanview-maxgen')
self.background = self._config.get('interface.fanview-background')
self.childring = self._config.get('interface.fanview-childrenring')
self.radialtext = self._config.get('interface.fanview-radialtext')
self.twolinename = self._config.get('interface.fanview-twolinename')
self.flipupsidedownname = self._config.get('interface.fanview-flipupsidedownname')
self.fonttype = self._config.get('interface.fanview-font')
self.grad_start = self._config.get('interface.color-start-grad')
self.grad_end = self._config.get('interface.color-end-grad')
self.form = self._config.get('interface.fanview-form')
self.generic_filter = None
self.alpha_filter = 0.2
dbstate.connect('active-changed', self.active_changed)
dbstate.connect('database-changed', self.change_db)
self.additional_uis.append(self.additional_ui())
self.allfonts = [x for x in enumerate(SystemFonts().get_system_fonts())]
self.func_list.update({
'<PRIMARY>J' : self.jump,
})
示例2: __init__
# 需要导入模块: from gramps.gui.views.navigationview import NavigationView [as 别名]
# 或者: from gramps.gui.views.navigationview.NavigationView import __init__ [as 别名]
def __init__(self, pdata, dbstate, uistate, nav_group=0):
self.dbstate = dbstate
self.uistate = uistate
NavigationView.__init__(self, _('Descendant Fan Chart'),
pdata, dbstate, uistate,
PersonBookmarks,
nav_group)
fanchartdesc.FanChartDescGrampsGUI.__init__(self, self.on_childmenu_changed)
#set needed values
self.maxgen = self._config.get('interface.fanview-maxgen')
self.background = self._config.get('interface.fanview-background')
self.fonttype = self._config.get('interface.fanview-font')
self.grad_start = self._config.get('interface.color-start-grad')
self.grad_end = self._config.get('interface.color-end-grad')
self.form = self._config.get('interface.fanview-form')
self.angle_algo = self._config.get('interface.angle-algorithm')
self.dupcolor = self._config.get('interface.duplicate-color')
self.generic_filter = None
self.alpha_filter = 0.2
dbstate.connect('active-changed', self.active_changed)
dbstate.connect('database-changed', self.change_db)
self.additional_uis.append(self.additional_ui())
self.allfonts = [x for x in enumerate(SystemFonts().get_system_fonts())]
示例3: __init__
# 需要导入模块: from gramps.gui.views.navigationview import NavigationView [as 别名]
# 或者: from gramps.gui.views.navigationview.NavigationView import __init__ [as 别名]
def __init__(self, title, pdata, dbstate, uistate,
bm_type, nav_group):
NavigationView.__init__(self, title, pdata, dbstate, uistate,
bm_type, nav_group)
OsmGps.__init__(self)
self.dbstate = dbstate
self.dbstate.connect('database-changed', self.change_db)
self.default_text = "Enter location here!"
self.centerlon = config.get("geography.center-lon")
self.centerlat = config.get("geography.center-lat")
self.zoom = config.get("geography.zoom")
self.lock = config.get("geography.lock")
if config.get('geography.path') == "":
config.set('geography.path', GEOGRAPHY_PATH)
self.format_helper = FormattingHelper(self.dbstate)
self.centerlat = self.centerlon = 0.0
self.cross_map = None
self.current_map = None
self.without = 0
self.place_list = []
self.places_found = []
self.select_fct = None
self.geo_mainmap = None
theme = Gtk.IconTheme.get_default()
self.geo_mainmap = theme.load_surface('gramps-geo-mainmap', 48, 1,
None, 0)
self.geo_altmap = theme.load_surface('gramps-geo-altmap', 48, 1,
None, 0)
if (config.get('geography.map_service') in
(constants.OPENSTREETMAP,
constants.MAPS_FOR_FREE,
constants.OPENCYCLEMAP,
constants.OSM_PUBLIC_TRANSPORT,
)):
default_image = self.geo_mainmap
else:
default_image = self.geo_altmap
self.geo_othermap = {}
for ident in (EventType.BIRTH,
EventType.DEATH,
EventType.MARRIAGE):
icon = constants.ICONS.get(int(ident))
self.geo_othermap[ident] = theme.load_surface(icon, 48, 1, None, 0)
self.maxyear = 0
self.minyear = 9999
self.maxlat = 0.0
self.minlat = 0.0
self.maxlon = 0.0
self.minlon = 0.0
self.longt = 0.0
self.latit = 0.0
self.itemoption = None
self.menu = None
self.mark = None
self.path_entry = None
self.changemap = None
self.clearmap = None
self.nbplaces = 0
示例4: __init__
# 需要导入模块: from gramps.gui.views.navigationview import NavigationView [as 别名]
# 或者: from gramps.gui.views.navigationview.NavigationView import __init__ [as 别名]
def __init__(self, pdata, dbstate, uistate, nav_group=0):
self.dbstate = dbstate
self.uistate = uistate
NavigationView.__init__(self, _('2-Way Fan Chart'),
pdata, dbstate, uistate,
PersonBookmarks,
nav_group)
fanchart2way.FanChart2WayGrampsGUI.__init__(self, self.on_childmenu_changed)
#set needed values
self.generations_asc = self._config.get('interface.fanview-maxgen-asc')
self.generations_desc = self._config.get('interface.fanview-maxgen-desc')
self.background = self._config.get('interface.fanview-background')
self.background_gradient = self._config.get('interface.fanview-background-gradient')
self.radialtext = self._config.get('interface.fanview-radialtext')
self.twolinename = self._config.get('interface.fanview-twolinename')
self.flipupsidedownname = self._config.get('interface.fanview-flipupsidedownname')
self.fonttype = self._config.get('interface.fanview-font')
self.grad_start = self._config.get('interface.color-start-grad')
self.grad_end = self._config.get('interface.color-end-grad')
self.form = fanchart.FORM_CIRCLE
self.angle_algo = self._config.get('interface.angle-algorithm')
self.dupcolor = self._config.get('interface.duplicate-color')
self.generic_filter = None
self.alpha_filter = 0.2
dbstate.connect('active-changed', self.active_changed)
dbstate.connect('database-changed', self.change_db)
self.additional_uis.append(self.additional_ui())
self.allfonts = [x for x in enumerate(SystemFonts().get_system_fonts())]
示例5: __init__
# 需要导入模块: from gramps.gui.views.navigationview import NavigationView [as 别名]
# 或者: from gramps.gui.views.navigationview.NavigationView import __init__ [as 别名]
def __init__(self, pdata, dbstate, uistate, nav_group=0):
NavigationView.__init__(self, _("Quilt chart"), pdata, dbstate, uistate, PersonBookmarks, nav_group)
self.dbstate = dbstate
self.uistate = uistate
self.dbstate.connect("database-changed", self.change_db)
self.additional_uis.append(self.additional_ui())
# GTK objects
self.scrolledwindow = None
self.canvas = None
self.scale = 1.0
self._in_move = False
self.layers = None
self.people = []
self.paths = []
示例6: __init__
# 需要导入模块: from gramps.gui.views.navigationview import NavigationView [as 别名]
# 或者: from gramps.gui.views.navigationview.NavigationView import __init__ [as 别名]
def __init__(self, pdata, dbstate, uistate, title=_('HtmlView')):
NavigationView.__init__(self, title, pdata, dbstate, uistate,
PersonBookmarks,
nav_group=0
)
self.dbstate = dbstate
self.back_action = None
self.forward_action = None
self.renderer = None
self.urlfield = ""
self.htmlfile = ""
self.filter = Gtk.Box()
self.table = ""
self.browser = NOWEB
#self.bootstrap_handler = None
self.box = None
self.toolkit = None
self.additional_uis.append(self.additional_ui())