Compare commits
2 Commits
9ea44933a6
...
ec130fcee9
| Author | SHA1 | Date | |
|---|---|---|---|
| ec130fcee9 | |||
| 95ed06df45 |
@@ -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"])
|
||||
|
||||
Reference in New Issue
Block a user