示例#1
0
 def set_scope(self, name):
     """
     Select a specific scope.
     :param: either a string (the name to select) or one of the constants
        defined in Search.Context
     """
     if isinstance(name, str):
         select_combo(self.scope, name)
     else:
         self.look_in.set_active_text(name)
示例#2
0
 def set_scope(self, name):
     """
     Select a specific scope.
     :param: either a string (the name to select) or one of the constants
        defined in Search.Context
     """
     if isinstance(name, str):
         select_combo(self.scope, name)
     else:
         self.look_in.set_active_text(name)