Tkinter는 프로그램 실행 후 나타나는 창이나 프레임을 만듭니다. Tkinter의 모든 기능과 모듈은 독립적이므로 특정 기능을 사용하여 창 속성을 사용자 정의할 수 있습니다.
Tkinter는 모든 응용 프로그램에 대한 기본 루트 창을 만듭니다. Tkinter 창의 기본 제목을 사용자 지정하거나 편집하려면 다음 방법을 사용할 수 있습니다.
title(text= “your title”)
Tkinter 프레임의 개체를 시작하여 창을 만들고 창이나 프레임의 제목을 편집해 보겠습니다.
예시
#Import the library
from tkinter import *
#Create an instance of window
win= Tk()
#Set the geometry of the window
win.geometry("700x400")
#Set the title of the window
win.title("tutorialspoint.com")
#Create a label if needed
Label(win, text= "The Title is tutorialspoint.com", font=('Helvetica bold',20), fg= "green").pack(pady=20)
#Keep running the window or frame
win.mainloop() 출력
위의 Python 코드는 제목을 tutorialspoint.com으로 설정합니다.
