Изменить название окна Tkinter
windowName.title('Window Title')
#Example
import tkinter
window = tkinter.Tk()
window.title('My Title')
Yeet
windowName.title('Window Title')
#Example
import tkinter
window = tkinter.Tk()
window.title('My Title')
from tkinter import *
window = Tk() # Create instance
window.title("This is the window title!!!") # Add a title
# To change the window title in Tkinter, do the following:
from tkinter import * # we import everyhting from tkinter
window = Tk() # creates a window
window.title("My Tkinter Window") # this will change the name of the window
window.geometry("300x200") # the size of the window
# This was basic Tkinter. Hope you found it useful!
# By SuperScripts
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")
import tkinter as tk #import module
window = tk.Tk()
window.title("Example Title!") #set title to anything
window.mainloop() #make the window