Tkinter 창은 창 위로 마우스를 가져간 다음 당겨서 자동으로 크기를 조정할 수 있습니다. 크기 조정을 비활성화할 수 있습니다. resizable(부울 값)을 사용하는 속성 방법. 거짓을 전달합니다. 이 메서드에 값을 지정하면 창 크기를 조정할 수 없습니다.
예시
#Import the tkinter library
from tkinter import *
#Create an instance of tkinter frame
win = Tk()
#Set the geometry
win.geometry("650x250")
Label(win, text= "Hello World", font=('Times New Roman bold',
20)).pack(pady=20)
#Make the window resizable false
win.resizable(False,False)
win.mainloop() 출력
위의 코드를 실행하면 다음과 같은 tkinter 창이 표시되지만 크기를 조정할 수는 없습니다.
