Unity 8
 All Classes Functions Properties
unity8.shell.emulators.dash.DashApps Class Reference
Inheritance diagram for unity8.shell.emulators.dash.DashApps:
Collaboration diagram for unity8.shell.emulators.dash.DashApps:

Public Member Functions

def get_applications
 
- Public Member Functions inherited from unity8.shell.emulators.dash.GenericScopeView
def open_preview
 

Detailed Description

Autopilot emulator for the applications scope.

Definition at line 184 of file dash.py.

Member Function Documentation

def unity8.shell.emulators.dash.DashApps.get_applications (   self,
  category 
)
Return the list of applications on a category.

:parameter category: The name of the category.

Definition at line 187 of file dash.py.

188  def get_applications(self, category):
189  """Return the list of applications on a category.
190 
191  :parameter category: The name of the category.
192 
193  """
194  category_element = self._get_category_element(category)
195  application_cards = category_element.select_many('AbstractButton')
196 
197  # sort by y, x
198  application_cards = sorted(
199  application_cards,
200  key=lambda card: (card.globalRect.y, card.globalRect.x))
201 
202  result = []
203  for card in application_cards:
204  if card.objectName != 'cardToolCard':
205  result.append(card.title)
206  return result
207 

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