Sep-27-2020, 12:25 AM
(This post was last modified: Sep-27-2020, 12:52 AM by ATARI_LIVE.)
Umm.. Thank for that but my point is the text did not print on both.
I am using Raspberry Pi 4B 4GB
I changed the text see here.
Oh Doh me.... forgot add label name and pack()... now it's worked.
I am using Raspberry Pi 4B 4GB
I changed the text see here.
from tkinter import * window_left = Tk() window_left.geometry("300x300") window_left.configure(bg='black') window_left.title("LEFT") window_right = Toplevel() window_right.geometry("300x300") window_right.configure(bg='black') window_right.title("RIGHT") Label(window_left, text="HELLO WORLD FROM LEFT", font=("Droid Sans Fallback", 30), fg="White", bg="black") Label(window_right, text="HELLO WORLD FROM RIGHT", font=("Droid Sans Fallback", 30), fg="White", bg="black") window_right.mainloop() window_left.mainloop()
Oh Doh me.... forgot add label name and pack()... now it's worked.