I bought the official Raspberry Pi Display and wonder now how I can display a GUI on it. I‘m using Raspbian with desktop. I did a lot of research and tried to make an Autostart Programm, which shows a tkinter GUI. But this didn‘t work out so well. What‘s the best way to display a self made GUI( with python tkinter) on the display. I have no big raspberry Pi experience so beginner friendly explanations would be perfect.

  • please add an explanation why But this didn‘t work out so well.
    – jsotola
    Nov 12 '21 at 17:52
  • I didn‘t managed it to autostart and the GUI wasn‘t hiding e.g the Taskbar. I wanted that you plug in the Pi and you only see the GUI and not Raspbian. There are so many projects, which uses the Display in the way i want so I thought it wouldn’t be so difficult.
    – Niklas
    Nov 13 '21 at 9:03

The simplest GUI is guizero. To install:

pip3 install guizero

Simple example:

from guizero import App

app = App(title="Hello world")


enter image description here


One method to autostart:

sudo thonny /etc/xdg/lxsession/LXDE-pi/autostart


@python3 /home/pi/test.py
  • Thanks! It works!
    – Niklas
    Nov 13 '21 at 12:29

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.