Statuszeile und filtern von aktiven Adressen #9
@@ -50,8 +50,13 @@ class Application:
|
||||
)
|
||||
sys.exit()
|
||||
|
||||
# frames
|
||||
top_frame = tk.Frame(self.root)
|
||||
top_frame.pack(side=tk.TOP, fill=tk.X)
|
||||
data_frame = tk.Frame(self.root, bg="teal")
|
||||
data_frame.pack(side=tk.TOP, fill=tk.BOTH, expand=True)
|
||||
|
||||
# top buttons
|
||||
button_width = 8
|
||||
tk.Button(top_frame, text="Insert", command=self.insert_record, width=button_width).pack(side=tk.LEFT)
|
||||
tk.Button(top_frame, text="Delete", command=self.delete_record, width=button_width).pack(side=tk.LEFT)
|
||||
@@ -60,9 +65,7 @@ class Application:
|
||||
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)
|
||||
|
||||
data_frame = tk.Frame(self.root, bg="teal")
|
||||
data_frame.pack(side=tk.TOP, fill=tk.BOTH, expand=True)
|
||||
|
||||
# table content
|
||||
scrollbar = ttk.Scrollbar(data_frame, orient=tk.VERTICAL)
|
||||
self.table = ttk.Treeview(data_frame, yscrollcommand=scrollbar.set, columns=("0", "1", "2", "3", "4"),
|
||||
show="headings")
|
||||
|
||||
Reference in New Issue
Block a user