scope_harness.Result
- class scope_harness.Result
Represents a read-only view on a result returned by a scope
- __getitem__((Result)arg1, (str)arg2) → object :
Get result attribute by name.
Parameters: arg2 (string) – attribute name Returns: attribute value Raises: ValueError if not found
- long_press((Result)arg1) → AbstractView :
Activates the result, as if user long-pressed it. Returns an instance of PreviewView (if result was previewed) or None (if result’s uri was a canned scope query)
Returns: PreviewView or None
- tap((Result)arg1) → AbstractView :
Activates the result, as if user tapped it. Returns an instance of PreviewView (if result was previewed) or ResultsView (if result’s uri was a canned scope query, resulting in a new search)
Returns: instance of PreviewView or ResultsView