Tkinter 응용 프로그램 창에는 창 크기, 제목, 탐색 모음, 메뉴 모음 구성 요소 등 많은 구성 요소가 있습니다. 창 속성 또는 속성을 구성하려면 Tcl/Tk에 정의된 창 관리자 도구 키트를 사용할 수 있습니다.
창 관리자 속성을 실행하려면 'wm' 명령을 사용하세요. 다른 키워드와 함께 창의 제목은 wm_title("title") 또는 title("title")을 사용하여 구성할 수 있습니다. 방법.
예시
# Import the required libraries
from tkinter import *
# Create an instance of tkinter frame or window
win=Tk()
# Set the size of the window
win.geometry("700x350")
# Change the title of the window
win.wm_title("My Window")
Label(win, text="Hello, Welcome to Tutorialspoint...", font=('Calibri 24')).pack()
win.mainloop() 출력
위의 코드를 실행하면 "My Window"라는 제목의 창이 표시됩니다.
