def action_add(self, pg_name, label, func_cb, data=None, icon=None, key=None): page = self.__pages.get(pg_name) if page: title, subtitle, box, content, actions, action_btns = page btn = WizardAction(self._parent, label, func_cb, key, data) if icon: ico = Icon(self._parent) ico.file_set(self.__theme_file, "editje/icon/" + icon) btn.icon_set(ico) ico.show() action_btns[label] = btn btn.show() actions.pack_end(btn)
def action_add(self, pg_name, label, func_cb, data=None, icon=None, key=None): page = self.__pages.get(pg_name) if page: title, subtitle, box, content, actions, action_btns = page btn = WizardAction(self._parent, label, func_cb, key, data) if icon: ico = Icon(self._parent) ico.file_set(self.__theme_file, "editje/icon/" + icon) btn.content_set(ico) ico.show() action_btns[label] = btn btn.show() actions.pack_end(btn)