summaryrefslogtreecommitdiff
path: root/src/netmonitor/front/detector_tab_pushscreens.py
diff options
context:
space:
mode:
authorEnricoGuccii <partyka.003@proton.me>2026-01-10 22:43:36 +0100
committerEnricoGuccii <partyka.003@proton.me>2026-01-10 22:43:36 +0100
commit6d7410e286ce0fde31f89185c095fe90e85597f3 (patch)
tree5092c99d353382a71f00d8fe18d53b8073cf3f58 /src/netmonitor/front/detector_tab_pushscreens.py
parentc2f5fbe7fb93ce420caf23c5c0e06144cf953bb8 (diff)
bloat removed
Diffstat (limited to 'src/netmonitor/front/detector_tab_pushscreens.py')
-rw-r--r--src/netmonitor/front/detector_tab_pushscreens.py31
1 files changed, 0 insertions, 31 deletions
diff --git a/src/netmonitor/front/detector_tab_pushscreens.py b/src/netmonitor/front/detector_tab_pushscreens.py
deleted file mode 100644
index 625921b..0000000
--- a/src/netmonitor/front/detector_tab_pushscreens.py
+++ /dev/null
@@ -1,31 +0,0 @@
-from textual.app import ComposeResult
-from textual.widgets import Input, Label, Button
-from textual.containers import Vertical, Horizontal
-from textual.screen import ModalScreen
-from textual import on
-
-from ..back.detector_profiles_manager import DetectorProfilesManager
-
-class SaveProfilePushScreen(ModalScreen[str]):
- def __init__(self, manager: DetectorProfilesManager, input_data , *args, **kwargs):
- super().__init__(*args, **kwargs)
- self.manager = manager
- self.input_data = input_data
-
-
- def compose(self) -> ComposeResult:
- with Vertical(classes="modal-window small-modal"):
- yield Label("Save scan profile", classes="modal-header")
- yield Input(placeholder="Profile name:", id="profile-name", classes="input")
- with Horizontal(id="buttons-row", classes="modal-buttons modal-footer"):
- yield Button("Confirm", id="confirm-button", variant="success", classes="button")
- yield Button("Cancel", id="cancel-button", variant="error", classes="button")
-
- @on(Button.Pressed)
- async def on_button_pressed(self, event: Button.Pressed):
- if event.button.id == "confirm-button":
- profile_name = self.query_one("#profile-name", Input).value.strip()
- self.manager.add_profile(profile_name,self.input_data)
- self.dismiss(None)
- else:
- self.dismiss(None)