Lomiri
Loading...
Searching...
No Matches
lomiri.indicators.DisplayIndicatorPage Class Reference
Inheritance diagram for lomiri.indicators.DisplayIndicatorPage:
Collaboration diagram for lomiri.indicators.DisplayIndicatorPage:

Public Member Functions

 validate_dbus_object (cls, path, state)
 
 lock_rotation (self)
 
 unlock_rotation (self)
 

Protected Member Functions

 _get_switcher (self)
 

Detailed Description

Autopilot helper for the display indicator page.

Definition at line 105 of file __init__.py.

Member Function Documentation

◆ _get_switcher()

lomiri.indicators.DisplayIndicatorPage._get_switcher (   self)
protected

Definition at line 123 of file __init__.py.

123 def _get_switcher(self):
124 return self.select_single(
125 lomiriuitoolkit.CheckBox, objectName='switcher')
126

◆ lock_rotation()

lomiri.indicators.DisplayIndicatorPage.lock_rotation (   self)
Toggle the rotation lock indicator to locked.

Definition at line 117 of file __init__.py.

117 def lock_rotation(self):
118 """Toggle the rotation lock indicator to locked."""
119 switcher = self._get_switcher()
120 switcher.check()
121 switcher.checked.wait_for(True)
122

◆ unlock_rotation()

lomiri.indicators.DisplayIndicatorPage.unlock_rotation (   self)
Toggle the rotation lock indicator to unlocked.

Definition at line 127 of file __init__.py.

127 def unlock_rotation(self):
128 """Toggle the rotation lock indicator to unlocked."""
129 switcher = self._get_switcher()
130 switcher.uncheck()
131 switcher.checked.wait_for(False)
132
133

◆ validate_dbus_object()

lomiri.indicators.DisplayIndicatorPage.validate_dbus_object (   cls,
  path,
  state 
)

Reimplemented from lomiri.indicators.IndicatorPage.

Definition at line 110 of file __init__.py.

110 def validate_dbus_object(cls, path, state):
111 name = introspection.get_classname_from_path(path)
112 if name == b'IndicatorPage':
113 if state['objectName'][1] == 'indicator-rotation-lock-page':
114 return True
115 return False
116

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