If you are meaning a setting title of your tkinter window by “this”. You have several options.
Option 1
if __name__ == '__main__':
your_gui = YourGUI()
your_gui.title('My Title') # Set title
your_gui.mainloop()
Option 2
def __init__(self):
# inherit tkinter's window methods
tk.Tk.__init__(self)
self.title('My Title') # Set title
.......
tk.Button(self, text="exit!", command=self.EXITME).grid(row=4, column=0, columnspan=2)
Both options should work in Python 3.7.1 and Python 2.7.5
0
solved Tkinter – how do I change the title?