Use Frame in python

 USE FRAME IN PYTHON

Hello friends, in this post we will learn how to use frame in python program. 
For this, only write few below code. 
First open PyCharm or visual studio and write this code in new python project. 


from tkinter import *
window = Tk()
window.title("Frame")
window.geometry("450x200")
window.resizable(False,False)
my = Frame(window, bd=10,height=200, width=450,bg="green", highlightthickness=5,
highlightbackground="cornflowerblue")
my.pack(side=TOP)
window.mainloop()
Frame



Comments