From c48920a99b137d65960ea0c83a897aada72c5392 Mon Sep 17 00:00:00 2001 From: Kieran Date: Thu, 4 Jan 2024 10:52:43 +0000 Subject: [PATCH] Added UI for Intervalls --- code/main.py | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/code/main.py b/code/main.py index e0075dc..07a2dbc 100644 --- a/code/main.py +++ b/code/main.py @@ -24,6 +24,8 @@ from datetime import datetime recording_finished = False code_version= "1.0" +#minimum_calculation_intervall is in seconds (10 is Currently a placeholder real values should be selected after testing) +minimum_calculation_intervall = 2 current_dir = os.getcwd() @@ -374,7 +376,26 @@ class VideoProcessingApp(tk.Tk): self.processing_button.place(x=10, y=160) self.processing_button.config(bg="#c82423", fg="#FFFFFF") - + # Checkbox for Use Intervalls + var1 = 10 + self.intervall_checkbox = tk.Checkbutton(self.processing_frame, text="Check to Process Intervalls instead of the full video",variable=var1, onvalue=1, offvalue=0)#set command + self.intervall_checkbox.place(x=180,y=60) + + # Spinbox for selection of test Intervall in mins + self.intervall_spinbox = tk.Spinbox(self.processing_frame, from_=1, to=10) + self.intervall_spinbox.place(x=180,y=100) + + # Label for selection of test Intervall in mins + self.intervall_spinbox_label = tk.Label(self.processing_frame, text="Selection of test every X mins") + self.intervall_spinbox_label.place(x=340,y=100) + + # Spinbox for selection of test duration + self.duration_spinbox = tk.Spinbox(self.processing_frame, from_=2, to=10) + self.duration_spinbox.place(x=180,y=140) + + # Label for selection of test duration in s + self.duration_spinbox_label = tk.Label(self.processing_frame, text="Selection of test Duration X in s") + self.duration_spinbox_label.place(x=340,y=140) def setup_testcase_controls(self): self.testcase_frame = tk.Frame(self, bg='white')