title tkinter python code example
Example 1: python tkinter frame title
from tkinter import *
root = Tk()
root.title("Title of the GUI")
root.geometry("500x400") # (length x width)
root.pack()
root.mainloop()
Example 2: title tikinter
from tkinter import Tk, Button, Frame, Entry, END
class ABC(Frame):
def __init__(self,parent=None):
Frame.__init__(self,parent)
self.parent = parent
self.pack()
ABC.make_widgets(self)
def make_widgets(self):
self.root = Tk()
self.root.title("Simple Prog")