mirror of
https://github.com/kristoferssolo/LU-bookstore.git
synced 2025-10-21 18:00:34 +00:00
style(gui): update table column widths
This commit is contained in:
parent
dba3dc9b27
commit
6410a97e2b
@ -35,10 +35,12 @@ class App(ctk.CTk):
|
||||
label = ctk.CTkLabel(self, text=header, width=self.WIDTH)
|
||||
label.grid(row=0, column=col, padx=self.PADX, pady=self.PADY)
|
||||
|
||||
widths = (110, 250, 150, 50, 50)
|
||||
|
||||
for row, book in enumerate(self.data, start=1): # Iterate through list of books
|
||||
if book:
|
||||
for col, value in enumerate(book): # Iterate through book data
|
||||
entry = ctk.CTkEntry(self, width=self.WIDTH)
|
||||
entry = ctk.CTkEntry(self, width=widths[col])
|
||||
entry.insert(ctk.END, value)
|
||||
entry.configure(state="readonly")
|
||||
entry.grid(row=row, column=col, padx=self.PADX, pady=self.PADY)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user