简体   繁体   中英

Raspberry piTFT display gui with python tkinter

I am using raspberry pi tft display from adafruit. What setting is required for raspberry piTFT display to work with python tkinter?

Python tkinter need XWindow system. You could start it on the PiTFT using :

FRAMEBUFFER=/dev/fb1 startx -- -dpi 60

There is a nice tutorial here: http://raspi.tv/2014/texys-2-8-inch-touchscreen-with-raspicamcorder-step-1

Next you can start python tkinter script using :

DISPLAY=:0 python <your script>

It will be displayed on PiTFT screen.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM