2 Commits

Author SHA1 Message Date
ec130fcee9 removed all "debug" print commands 2025-04-28 00:24:00 +02:00
95ed06df45 typo in label 2025-04-28 00:23:19 +02:00

View File

@@ -73,7 +73,7 @@ class Application:
tk.Button(top_frame, text="Delete", command=self.delete_record, width=button_width).pack(side=tk.LEFT)
tk.Button(top_frame, text="Export CSV", command=self.export_csv, width=button_width).pack(side=tk.LEFT)
tk.Button(top_frame, text="Toggle Aktiv", command=self.toggle_active, width=button_width).pack(side=tk.LEFT)
tk.Checkbutton(top_frame, text="Filter aktive", variable=self.filter_active, command=self.populate_table).pack(
tk.Checkbutton(top_frame, text="Filter aktiv", variable=self.filter_active, command=self.populate_table).pack(
side=tk.LEFT)
tk.Button(top_frame, text="Quit", command=self.on_close, width=button_width).pack(side=tk.RIGHT)
tk.Button(top_frame, text="Settings", command=self.show_settings, width=button_width).pack(side=tk.RIGHT)
@@ -156,7 +156,6 @@ class Application:
if messagebox.askyesno(
"Eintrag löschen?",
"Willst du diesen Eintrag wirklich löschen?\nDies kann nicht rückgängig gemacht werden"):
print(type(self.current_record))
self.model.delete_by_id(self.current_record)
self.deselect_tree()
@@ -207,7 +206,6 @@ class Application:
def click_on_header(self, event):
column = self.table.identify_column(event.x)
print(f"col: {column}")
if self.last_sort_field == column:
self.sort_order = False if self.sort_order else True
else:
@@ -266,7 +264,6 @@ class Application:
# skip inactive records if filter is true
if self.filter_active.get() and address["aktiv"] != "x":
continue
print(address)
self.table.insert('', 'end', iid=address["record_id"],
values=(address["aktiv"], address["firma"], address["name"], address["strasse"],
address["plzort"])