Python Forum
[Tkinter] DUAL WINDOWS...
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tkinter] DUAL WINDOWS...
#4
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.
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.
Reply


Messages In This Thread
DUAL WINDOWS... - by ATARI_LIVE - Sep-26-2020, 04:20 PM
RE: DUAL WINDOWS... - by deanhystad - Sep-26-2020, 04:48 PM
RE: DUAL WINDOWS... - by DT2000 - Sep-26-2020, 09:23 PM
RE: DUAL WINDOWS... - by ATARI_LIVE - Sep-27-2020, 12:25 AM
RE: DUAL WINDOWS... - by DT2000 - Sep-27-2020, 04:21 AM
RE: DUAL WINDOWS... - by ATARI_LIVE - Sep-27-2020, 11:35 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Dual Tkinter windows and shells Astrikor 6 4,105 Sep-03-2020, 10:09 PM
Last Post: Astrikor

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020