I have been building a large python program for a while, and would like to know how I would go about setting the title of the program? On a mac the title of program, which has focus, is shown in the top left corner of the screen, next the apple menu. Currently this only shows the word "Python", but I would of course like to my program’s title there instead.
Share
It depends on what type of application you have. If it’s a graphical application, most graphical toolkits allow you to change the title of a window (tk, which comes with python, allows you to do this by calling the
title()method of your window object, as does gtk, for which you can use theset_title()method on aGtk.Windowobject)If you’re talking about changing the title of the terminal window (for mac or Linux), the you have this option (from here):
For Windows, there’s a different method: