From 9efe4c473fd999e70b1b43eb58cdb52428c31f56 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 12 Feb 2024 19:34:21 -0300 Subject: Add an application favicon --- __main__.py | 8 +++++++- favicon.png | Bin 0 -> 1010 bytes 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 favicon.png diff --git a/__main__.py b/__main__.py index fbcfd35..9e15e4a 100755 --- a/__main__.py +++ b/__main__.py @@ -20,6 +20,7 @@ OBFS = 185 # <- For debugging (FIXME ^ above didn't held up in practice) # TODO: Maybe we can do len() for the absolute path to this script # Then % 256 it so we always have a valid unchanging obfuscation? >_> # TODO: Make a .ico for this, and pyinstaller -i? (--onefile) +# pyinstaller --icon=favicon.ico print("Obfuscation key = %d" % OBFS) # <- Just to not leave it in plain text ## Internal wrapper for preferences @@ -716,6 +717,12 @@ Which world will you visit first? For once you finish all of the worlds, your tr ## Build Tkinter interface root=tk.Tk() root.title("Mana Launcher (tk)") + +## Initialize the images +_cog_png = tk.PhotoImage(file = "cog.png") +_favicon = tk.PhotoImage(file = "favicon.png") + +root.iconphoto(True, _favicon) canva = tk.Canvas(root, width=400, height=600, bg="#0c3251") canva.pack() @@ -724,7 +731,6 @@ saveMail = tk.BooleanVar() saveMail.set(pref["user"] != "") savePass = tk.BooleanVar() savePass.set(pref["pass"] != "") -_cog_png = tk.PhotoImage(file = "cog.png") ## Email label1 = tk.Label(root, text='Email:', bg="#0c3251", fg="#fff") diff --git a/favicon.png b/favicon.png new file mode 100644 index 0000000..2539039 Binary files /dev/null and b/favicon.png differ -- cgit v1.2.3-60-g2f50