본문 바로가기

개발자 모드/파이썬(python)

파이썬 GUI size변경 불가 코드

728x90
#=======================================
# imports
#=======================================

import tkinter as tk

# Create instance

win = tk.Tk()

# Add a title
win.title("Python GUI")


# Disalbe resizing the GUI by passing False/False
win.resizable(False, False)

# Enable resizing x-dimension, disable y-dimension
# win.resizable(True, False)

#=======================================
# Start GUI
#=======================================
win.mainloop()

 

 

728x90