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 187 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 190 of file dash.py.

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

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