mirror of
https://github.com/FAUSheppy/homelab_gamevault
synced 2025-12-06 06:51:36 +01:00
fix: progress bar sizing
This commit is contained in:
@@ -45,7 +45,7 @@ def create_details_page(app, software, backswitch_function):
|
||||
command=backswitch_function)
|
||||
back_button.pack(anchor="nw", side="left")
|
||||
progress_bar = software.progress_bar_wrapper.new(navbar)
|
||||
progress_bar.pack(anchor="nw", side="left")
|
||||
progress_bar.pack(anchor="nw", side="left", padx=20, pady=5)
|
||||
elements.append(navbar)
|
||||
elements.append(back_button)
|
||||
elements.append(progress_bar)
|
||||
|
||||
@@ -9,7 +9,7 @@ class ProgressBarWrapper:
|
||||
self.progress_bar = None
|
||||
|
||||
def new(self, tk_parent):
|
||||
self.progress_bar = customtkinter.CTkProgressBar(tk_parent)
|
||||
self.progress_bar = customtkinter.CTkProgressBar(tk_parent, height=20, width=200)
|
||||
self.progress_bar["maximum"] = 10000
|
||||
self.progress_bar.set(0)
|
||||
return self.progress_bar
|
||||
@@ -18,4 +18,4 @@ class ProgressBarWrapper:
|
||||
if self.progress_bar:
|
||||
return self.progress_bar
|
||||
else:
|
||||
raise AssertionError("No progress bar in this wrapper created")
|
||||
raise AssertionError("No progress bar in this wrapper created")
|
||||
|
||||
Reference in New Issue
Block a user