allways use icon.ico in popups

This commit is contained in:
Semjon 2022-06-13 09:40:50 +02:00
parent 3b2b23b8d9
commit f1f565c628
2 changed files with 2 additions and 1 deletions

View File

@ -18,7 +18,6 @@ def _show(gui, currentversion, newversion, returns):
top = PopUp(helper.empty_function, gui._root)
top.title("A wild fishy update appeared!")
top.iconbitmap(helper.manifest_file('icon.ico'))
dialogLabel = tk.Label(top, text="There is a new fishy update available (" +
currentversion + "->" + newversion + "). Do you want to update now?")

View File

@ -1,5 +1,6 @@
import time
from tkinter import Toplevel
from fishy import helper
def center(win):
@ -20,6 +21,7 @@ class PopUp(Toplevel):
self.running = True
self.quit_callback = quit_callback
self.protocol("WM_DELETE_WINDOW", self.quit_top)
self.iconbitmap(helper.manifest_file('icon.ico'))
def quit_top(self):
self.quit_callback()