python frame in a frame

Solutions on MaxInterview for python frame in a frame by the best coders in the world

showing results for - "python frame in a frame"
Talia
21 Mar 2017
1w = Label(root, text=f"{dt.datetime.now():%a, %b %d %Y}", fg="white", bg="black", font=("helvetica", 40))
Erik
18 Sep 2016
1import Tkinter
2tk = Tkinter.Tk()
3frame1 = Tkinter.Frame(tk, height = 100, width = 100, bg = "WHITE", borderwidth=2)
4frame2 = Tkinter.Frame(frame1, height = 100, width = 100, bg = "RED", borderwidth=2)
5frame1.pack()
6frame2.pack()
7label = Tkinter.Label(frame2, text = "Label") #Receive a callback from button here
8label.pack()
9button = Tkinter.Button(frame1,text="Button") #Send some action to Label here
10button.pack()
11tk.mainloop()