Python Forum
Working with 2 displays
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Working with 2 displays
#3
Thanks for your reply as requested here is a similar program
In this case I want the secondary screen to be filled with red, yellow or green
depending on the button pushed on the GUI which should only be seen on the main display



from tkinter import *

def red():
    root3['bg']="red"
def green():
    root3['bg']="green"
def yellow():
    root3['bg']='yellow'

root = Tk()
root3 = Toplevel(root)
root3.attributes("-fullscreen", True)

Button1 = Button(root,text="RED",command=red)
Button1.pack()

Button2 = Button(root,text="YELLOW",command=yellow)
Button2.pack()

Button3 = Button(root,text="GREEN",command=green)
Button3.pack()
root.mainloop()
Reply


Messages In This Thread
Working with 2 displays - by jims - Mar-17-2019, 12:07 PM
RE: Working with 2 displays - by Barrowman - Mar-17-2019, 02:03 PM
RE: Working with 2 displays - by jims - Mar-17-2019, 08:47 PM

Forum Jump:

User Panel Messages

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