# Import the library tkinterfromtkinterimport*# Create a GUI appapp=Tk()# Give a title to your appapp.title("Vinayak App")# Constructing the first frame, frame1frame1=LabelFrame(app,text="Fruit",bg="green",fg="white",padx=15,pady=15)# Displaying the frame1 in row 0 and column 0frame1.grid(row=0,column=0)# Constructing the button b1 in frame1b1=Button(frame1,text="Apple")# Displaying the button b1b1.pack()# Constructing the second frame, frame2frame2=LabelFrame(app,text="Vegetable",bg="yellow",padx=15,pady=15)# Displaying the frame2 in row 0 and column 1frame2.grid(row=0,column=1)# Constructing the button in frame2b2=Button(frame2,text="Tomato")# Displaying the button b2b2.pack()# Make the loop for displaying appapp.mainloop()