예제 #1
0
 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
예제 #2
0
파일: variable.py 프로젝트: arjclark/rose
 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