summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2024-02-12 19:34:21 -0300
committerJesusaves <cpntb1@ymail.com>2024-02-12 19:34:21 -0300
commit9efe4c473fd999e70b1b43eb58cdb52428c31f56 (patch)
tree5ec57408a5683afb09cec84ad106d7d10a6c6162
parentbe43135e3151f6e87c0a1bab2070c9692261a4e1 (diff)
downloadtkinter-9efe4c473fd999e70b1b43eb58cdb52428c31f56.tar.gz
tkinter-9efe4c473fd999e70b1b43eb58cdb52428c31f56.tar.bz2
tkinter-9efe4c473fd999e70b1b43eb58cdb52428c31f56.tar.xz
tkinter-9efe4c473fd999e70b1b43eb58cdb52428c31f56.zip
Add an application favicon
-rwxr-xr-x__main__.py8
-rw-r--r--favicon.pngbin0 -> 1010 bytes
2 files changed, 7 insertions, 1 deletions
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
--- /dev/null
+++ b/favicon.png
Binary files differ