| 1 | from gi.repository import Gtk |
| 2 | |
| 3 | class DesktopPuppet(): |
| 4 | def __init__(self) -> None: |
| 5 | # Model dimensions |
| 6 | self.model_x = 0 |
| 7 | self.model_y = 0 |
| 8 | self.model_width = 0 |
| 9 | self.model_height = 0 |
| 10 | # Settings |
| 11 | self.settings = {} |
| 12 | pass |
| 13 | |
| 14 | def get_gtk_widget(self) -> Gtk.Widget: |
| 15 | """Get the GTK Widget to display |
| 16 | |
| 17 | Returns: |
| 18 | Gtk.Widget: The GTK Widget |
| 19 | """ |
| 20 | return Gtk.Box() |
| 21 | |
| 22 | def look(self, x, y): |
| 23 | """Look in the direction given |
| 24 | |
| 25 | Args: |
| 26 | x (): x coordinate on the monitor |
| 27 | y (): y coordinate on the monitor |
| 28 | """ |
| 29 | pass |
| 30 | |
| 31 | def update_area(self): |
| 32 | """Update the model area, update using the model dimensions properties""" |
| 33 | pass |
| 34 | |
| 35 | def get_expressions(self) -> list[str]: |
| 36 | """Get the list of possible expressions |
| 37 | |
| 38 | Returns: |
| 39 | list[str]: List of expressions |
| 40 | """ |
| 41 | return [] |
| 42 | |
| 43 | def set_expression(self, expression: str) -> None: |
| 44 | """Set the expression |
| 45 | |
| 46 | Args: |
| 47 | expression: The expression to set |
| 48 | """ |
| 49 | pass |
| 50 | |
| 51 | def get_motions(self) -> list[str]: |
| 52 | """Get the list of possible motions |
| 53 | |
| 54 | Returns: |
| 55 | list[str]: List of motions |
| 56 | """ |
| 57 | return [] |
| 58 | |
| 59 | def do_motion(self, motion: str) -> None: |
| 60 | """Set the motion |
nothing calls this directly
no outgoing calls
no test coverage detected