def __init__(self, uistate, dbstate, names): self.uistate = uistate self.dbstate = dbstate self.db = dbstate.db self.names = names self.nametypes = set() for rownum, row in enumerate(self.names): row.rownum = rownum code, text = row.nametype.serialize() self.nametypes.add((code, text)) ManagedWindow.__init__(self, self.uistate, [], self.__class__, modal=False) # the self.top.run() below makes Gtk make it modal, so any change to # the previous line's "modal" would require that line to be changed DbGUIElement.__init__(self, dbstate.db) self.draw_window() self.set_window(self.top, None, _("Name editor")) self.setup_configs('interface.names', 400, 350) self.show()
def __init__(self, gui, nav_group=0): Gramplet.__init__(self, gui, nav_group) DbGUIElement.__init__(self, self.dbstate.db)