All Classes Functions Properties
unity8.shell.emulators.dash.DashApps Class Reference
Inheritance diagram for unity8.shell.emulators.dash.DashApps:
[legend]
Collaboration diagram for unity8.shell.emulators.dash.DashApps:
[legend]

## 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.

def get_applications(self, category):
"""Return the list of applications on a category.
:parameter category: The name of the category.
"""
category_element = self._get_category_element(category)
application_cards = category_element.select_many('Card')
# sort by y, x
application_cards = sorted(
application_cards,
key=lambda card: (card.globalRect.y, card.globalRect.x))
result = []
for card in application_cards:
if card.objectName != 'cardToolCard':
card_header = card.select_single('CardHeader')
result.append(card_header.title)
return result
unity8.shell.emulators.dash.GenericScopeView._get_category_element
def _get_category_element
Definition: dash.py:175
unity8.shell.emulators.dash.DashApps.get_applications
def get_applications
Definition: dash.py:187

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

- tests/autopilot/unity8/shell/emulators/dash.py