def get_menuwidget(self, variable, menuclass=None): """Create the menuwidget attribute, an option menu button.""" if menuclass is None: menuclass = rose.config_editor.menuwidget.MenuWidget menuwidget = menuclass(variable, self.var_ops, lambda: self.remove_from(self.get_parent()), self.update_status, self.launch_help) menuwidget.show() return menuwidget