Unity 8
unity8.shell.emulators.dash.Dash Class Reference
Inheritance diagram for unity8.shell.emulators.dash.Dash:
Collaboration diagram for unity8.shell.emulators.dash.Dash:

Public Member Functions

def __init__ (self, args)
 
def get_applications_grid (self)
 
def get_application_icon (self, text)
 
def get_scope
 
def get_scope_by_index
 
def open_scope (self, scope_id)
 
def enter_search_query (self, query)
 

Public Attributes

 dash_content_list
 

Detailed Description

An emulator that understands the Dash.

Definition at line 44 of file dash.py.

Member Function Documentation

def unity8.shell.emulators.dash.Dash.get_application_icon (   self,
  text 
)
Returns a 'Tile' icon that has the text 'text' from the application
grid.

:param text: String containing the text of the icon to search for.

Definition at line 57 of file dash.py.

57  def get_application_icon(self, text):
58  """Returns a 'Tile' icon that has the text 'text' from the application
59  grid.
60 
61  :param text: String containing the text of the icon to search for.
62 
63  """
64  app_grid = self.get_applications_grid()
65  resp_grid = app_grid.wait_select_single('ResponsiveGridView')
66  return resp_grid.select_single('Tile', text=text)
67 
def get_application_icon(self, text)
Definition: dash.py:57
def get_applications_grid(self)
Definition: dash.py:52
def unity8.shell.emulators.dash.Dash.open_scope (   self,
  scope_id 
)
Open a dash scope.

:parameter scope_id: The id of the scope.
:return: The scope.

Definition at line 77 of file dash.py.

77  def open_scope(self, scope_id):
78  """Open a dash scope.
79 
80  :parameter scope_id: The id of the scope.
81  :return: The scope.
82 
83  """
84  scope_loader = self._get_scope_loader(scope_id)
85  if scope_loader.isCurrent:
86  logger.info('The scope is already open.')
87  return self._get_scope_from_loader(scope_loader)
88  else:
89  return self._open_scope_scrolling(scope_loader)
90 
def _get_scope_loader(self, scope_id)
Definition: dash.py:91
def _get_scope_from_loader(self, loader)
Definition: dash.py:103
def _open_scope_scrolling(self, scope_loader)
Definition: dash.py:106
def open_scope(self, scope_id)
Definition: dash.py:77

The documentation for this class was generated from the following file: