Skip to content

Commit

Permalink
Fix images bug
Browse files Browse the repository at this point in the history
Tkinter wasn't displaying the images declared in functions due to an already known bug
  • Loading branch information
Fonta22 committed Mar 4, 2024
1 parent 7c620eb commit e2164d6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/TextureRestorer.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ def setup_window(self):

def setup_widgets(self):
img = tk.PhotoImage(file='./assets/logo.png').subsample(3, 3)
tk.Label(self.master, image=img).pack()
label = tk.Label(self.master, image=img)
label.image = img
label.pack()

self.path_input = ttk.Entry(self.master)
self.path_input.insert(0, 'Geometry Dash Path')
Expand Down Expand Up @@ -66,9 +68,9 @@ def __init__(self, master, destination_path):

def setup_widgets(self):
ttk.Label(self, text='Restoring Original Textures').place(x=10, y=5)
self.pBar = ttk.Progressbar(self, orient=ttk.HORIZONTAL, length=280, mode="determinate", maximum=100, value=0)
self.pBar = ttk.Progressbar(self, orient='horizontal', length=280, mode="determinate", maximum=100, value=0)
self.pBar.place(x=10, y=25)
self.percentage_label = ttk.Label(self, text='0%', width='10', anchor="e", justify=ttk.LEFT)
self.percentage_label = ttk.Label(self, text='0%', width='10', anchor="e", justify='left')
self.percentage_label.place(x=225, y=5)
self.size_label = ttk.Label(self, text='')
self.size_label.place(x=10, y=50)
Expand Down

0 comments on commit e2164d6

Please sign in to comment.