def _construct_uimanager(self): uimanager = gtk.UIManager() uihelper.add_actions(uimanager, 'root', self.actions, map=self) uimanager.add_ui_from_string(self.ui) self.add_accel_group(uimanager.get_accel_group()) return uimanager
def _construct_uimanager(self): uim = gtk.UIManager() uihelper.add_actions(uim, "Application", self.actions_application, self.app) uihelper.add_actions(uim, "AppWin", self.actions_appwin, self) uihelper.add_actions(uim, "Matplotlib", self.actions_matplotlib, self.app) uihelper.add_actions(uim, "Gnuplot", self.actions_gnuplot, self.app) uihelper.add_actions(uim, "Debug", self.actions_debug, self.app) uihelper.add_actions(uim, "UndoRedo", self.actions_undoredo, self.app) return uim