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
__init__()

Raises an exception This class cannot be instantiated from Python

__module__ = 'scope_harness'
__reduce__()
art
attributes
background
dnd_uri
emblem
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
mascot
subtitle
summary
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
tap_action((Result)arg1, (str)arg2) → AbstractView :

Activates result action. Returns the ResultsView where affected result may potentially be updated.

title
uri