Unity 8
unity8.dash.Dash Class Reference

Inherits UbuntuUIToolkitCustomProxyObjectBase.

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, keyboard)
 
def get_search_text_field (self)
 

Public Attributes

 dash_content_list
 

Detailed Description

A helper that understands the Dash.

Definition at line 43 of file dash.py.

Member Function Documentation

def unity8.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 56 of file dash.py.

56  def get_application_icon(self, text):
57  """Returns a 'Tile' icon that has the text 'text' from the application
58  grid.
59 
60  :param text: String containing the text of the icon to search for.
61 
62  """
63  app_grid = self.get_applications_grid()
64  resp_grid = app_grid.wait_select_single('ResponsiveGridView')
65  return resp_grid.select_single('Tile', text=text)
66 
def get_applications_grid(self)
Definition: dash.py:51
def get_application_icon(self, text)
Definition: dash.py:56
def unity8.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 76 of file dash.py.

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

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