summaryrefslogtreecommitdiff
path: root/__main__.py
diff options
context:
space:
mode:
Diffstat (limited to '__main__.py')
-rwxr-xr-x__main__.py8
1 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")