From 2afb5fa26689a2c7bba1b3375d21a6420e0a2448 Mon Sep 17 00:00:00 2001 From: Musab Erdem Date: Tue, 23 Jul 2024 13:32:57 +0200 Subject: [PATCH] Reihenfolge der Bedienelemente umgestellt. --- main.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/main.py b/main.py index 29e05f5..510d08d 100644 --- a/main.py +++ b/main.py @@ -97,28 +97,28 @@ class ArduinoGUI: # Labels and ComboBox for Stellantriebstyp self.stellantriebstyp_label = customtkinter.CTkLabel(self.root, text="Stellantriebstyp:", font=self.my_font) - self.stellantriebstyp_label.grid(row=2, column=0, padx=(10, 5), pady=(10, 0), sticky="w") + self.stellantriebstyp_label.grid(row=3, column=0, padx=(10, 5), pady=(10, 0), sticky="w") self.config_combobox_value = customtkinter.StringVar() self.config_combobox = customtkinter.CTkComboBox(self.root, variable=self.config_combobox_value, state="readonly", font=self.my_font) - self.config_combobox.grid(row=2, column=1, columnspan=1, padx=(0, 10), pady=(10, 0), sticky="ew") + self.config_combobox.grid(row=3, column=1, columnspan=1, padx=(0, 10), pady=(10, 0), sticky="ew") #self.config_combobox.bind("<>", self.on_config_selected) # Setzen Button für Stellantriebstyp self.set_pid_button = customtkinter.CTkButton(self.root, text="Setzen", command=self.set_pid_parameters, font=self.my_font) - self.set_pid_button.grid(row=2, column=2, padx=(0, 10), pady=(10, 0), sticky="ew") + self.set_pid_button.grid(row=3, column=2, padx=(0, 10), pady=(10, 0), sticky="ew") # Labels and ComboBox for COM Port self.com_label = customtkinter.CTkLabel(self.root, text="COM Port:", font=self.my_font) - self.com_label.grid(row=3, column=0, padx=(10, 5), pady=(10, 0), sticky="w") + self.com_label.grid(row=2, column=0, padx=(10, 5), pady=(10, 0), sticky="w") self.combobox_value = customtkinter.StringVar() self.combobox = customtkinter.CTkComboBox(self.root, variable=self.combobox_value, font=self.my_font) self.combobox.configure(values=[port.device for port in self.ports]) - self.combobox.grid(row=3, column=1, padx=(0, 10), pady=(10, 0), sticky="ew") + self.combobox.grid(row=2, column=1, padx=(0, 10), pady=(10, 0), sticky="ew") self.connect_button = customtkinter.CTkButton(self.root, text="Verbinden", command=self.connect_arduino, font=self.my_font) - self.connect_button.grid(row=3, column=2, padx=(0, 10), pady=(10, 0), sticky="ew") + self.connect_button.grid(row=2, column=2, padx=(0, 10), pady=(10, 0), sticky="ew") # Setpoint entry self.setpoint_label = customtkinter.CTkLabel(self.root, text="Sollwerteingabe in Nm:", font=self.my_font)