RHEL w/Tkinter & Python3 - Changing the Activity name from “Tk”

点点圈 提交于 2020-05-30 12:30:56

问题


I'm trying to set the Activity (not sure of the proper term, see screenshot) name for a Tkinter app. I'm not a Linux expert, novice, or really even beginner, but the system about dialog lists my test machine as Fedora 30. Window Manager is Gnome.

Code can't get much simpler:

import tkinter as tk

master=tk.Tk()
master.title("My lil' Application")
master.mainloop()

This is most likely either a very simple or impossible thing to accomplish. I've not been able to come up with the magical search terms that result in an answer yet. This seems like something that someone else must have run into though which means the answer has to be out there.

Thank you for your time.

Solution from stovfl:

import tkinter as tk

master=tk.Tk(className="My lil' Application")
master.title("My lil' Application")
master.mainloop()

来源:https://stackoverflow.com/questions/59144939/rhel-w-tkinter-python3-changing-the-activity-name-from-tk

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!