|
27 | 27 | from src.backend.PageManagement.Page import Page |
28 | 28 |
|
29 | 29 | class PostRequest(ActionBase): |
30 | | - def __init__(self, action_id: str, action_name: str, |
31 | | - deck_controller: "DeckController", page: Page, coords: str, plugin_base: PluginBase): |
32 | | - super().__init__(action_id=action_id, action_name=action_name, |
33 | | - deck_controller=deck_controller, page=page, coords=coords, plugin_base=plugin_base) |
| 30 | + def __init__(self, *args, **kwargs): |
| 31 | + super().__init__(*args, **kwargs) |
34 | 32 |
|
35 | 33 | def on_ready(self): |
36 | 34 | self.set_media(media_path=os.path.join(self.plugin_base.PATH, "assets", "http.png"), size=0.9) |
@@ -76,10 +74,8 @@ def on_key_down(self): |
76 | 74 | self.show_error(duration=2) |
77 | 75 |
|
78 | 76 | class GetRequest(ActionBase): |
79 | | - def __init__(self, action_id: str, action_name: str, |
80 | | - deck_controller: "DeckController", page: Page, coords: str, plugin_base: PluginBase): |
81 | | - super().__init__(action_id=action_id, action_name=action_name, |
82 | | - deck_controller=deck_controller, page=page, coords=coords, plugin_base=plugin_base) |
| 77 | + def __init__(self, *args, **kwargs): |
| 78 | + super().__init__(*args, **kwargs) |
83 | 79 |
|
84 | 80 | self.n_ticks = 0 |
85 | 81 |
|
|
0 commit comments