When you create an tkinter (or any graphical interface) app, the Python Launcher shows up in your dock (bottom right hand corner, next to the Trash Can). Even if you change the name of the program in the menu (top bar), it still says "Python". I would like to change the name.
Full
Let's say you have this:
from tkinter import *
import sys
from Foundation import NSBundle
#create window
root = Tk()
root.title("Caskt Evlofrow")
#this makes the name in the MENU "Caskt Evlofrow"
if sys.platform == "darwin":
bundle = NSBundle.mainBundle()
if bundle:
info = bundle.localizedInfoDictionary() or bundle.infoDictionary()
if info and info['CFBundleName'] == 'Python':
info['CFBundleName'] = "Caskt Evlofrow"
root.mainloop()
Credit to this question to change the menu name. However, even though it changes the MENU name, it doesn't change the DOCK name (the name that the Python Launcher rocket says). How can I change the DOCK name?
What I've Done So far I've tried looking it up on google. I tried looking at linked questions from this question. But I still can't find it. I might be using the wrong keywords, so any help is extremely appreciated!
Common Mistaken Thoughts
Some people are saying that I should make it into an "executable." However, the python launcher still says "Python," so it doesn't really help my problem.
Also, CFBundleDisplayName
doesn't exist in my version of macOS (Mojave).
This is an image of what I want: