Autopilot helper for the Slider component.
Definition at line 168 of file __init__.py.
◆ slide_left()
lomiri.indicators.Slider.slide_left |
( |
| self, |
|
|
| timeout = 10 ) |
Definition at line 183 of file __init__.py.
183 def slide_left(self, timeout=10):
184 x, y, width, height = self.globalRect
185
186 rate = 5
187 start_x = x + width/2
188 start_y = stop_y = y + height/2
189 stop_x = x
190
191 self.pointing_device.drag(start_x, start_y, stop_x, stop_y, rate)
192 self.value.wait_for(self.minimumValue, timeout)
193
◆ slide_right()
lomiri.indicators.Slider.slide_right |
( |
| self, |
|
|
| timeout = 10 ) |
Definition at line 194 of file __init__.py.
194 def slide_right(self, timeout=10):
195 x, y, width, height = self.globalRect
196
197 rate = 5
198 start_x = x + width/2
199 start_y = stop_y = y + height/2
200 stop_x = x + width
201
202 self.pointing_device.drag(start_x, start_y, stop_x, stop_y, rate)
203 self.value.wait_for(self.maximumValue, timeout)
◆ validate_dbus_object()
lomiri.indicators.Slider.validate_dbus_object |
( |
| cls, |
|
|
| path, |
|
|
| state ) |
Definition at line 177 of file __init__.py.
177 def validate_dbus_object(cls, path, state):
178 name = introspection.get_classname_from_path(path)
179 if name == b'Slider':
180 return True
181 return False
182
◆ maximumValue
lomiri.indicators.Slider.maximumValue |
◆ minimumValue
lomiri.indicators.Slider.minimumValue |
The documentation for this class was generated from the following file: