0

I am currently working on a project for which I am using a 3.5" touchscreen as an output for some buttons. I can get it to be used as the output for the whole GUI, but that leads to the display being overcrowded and an inability to use the monitor for other functions as I would like. Any advice on how to just output a tkinter window to the touchscreen?

1
  • If you are using an Adafruit touchscreen, you can use PyGame to write to the display. See here May 23, 2020 at 16:05

1 Answer 1

0
from tkinter import *
window = Tk()
window.title("TouchScreen Window")
window.geometry('800x600')
window.mainloop()
1
  • You may want to take a look at MagPi Magazine issue #29 which has the basics for getting a TkInter window running.
    – Dougie
    Apr 24, 2019 at 23:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.