0

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.

2
  • please add an explanation why But this didn‘t work out so well.
    – jsotola
    Commented Nov 12, 2021 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
    Commented Nov 13, 2021 at 9:03

1 Answer 1

2

The simplest GUI is guizero. To install:

pip3 install guizero

Simple example:

from guizero import App

app = App(title="Hello world")

app.display()

enter image description here

https://lawsie.github.io/guizero/start/

One method to autostart:

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

Add:

@python3 /home/pi/test.py
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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