Page 1 of 1

Python GUI Interface

Posted: Wed Jan 18, 2017 3:10 pm
by formella22
https://www.youtube.com/watch?v=Bvq0LdBn0dY

We created a program that runs similarly to the GUI in the video above using tkinter library and python. We want the program to start immediately after every start up, but are unsure how. The interface is at full screen right now with no access to the desktop or menu. We want the user to simply experience the interface and not have to open and run any code, with the exit button commanding the pi to shutdown. Changing rc.local and crontab hasn't given us any results, which could be an affect of us coding incorrectly. We are students learning this, so we would appreciate simple or step by step explanations if possible.

Thank you.

Re: Python GUI Interface

Posted: Wed Jan 18, 2017 3:54 pm
by B.Goode
The Raspberry Pi Foundation documentation for those two options is here: https://www.raspberrypi.org/documentati ... /README.md

Re: Python GUI Interface

Posted: Wed Jan 18, 2017 4:39 pm
by gkreidl
You will have to start X11 and probably a window manager as well.
If you want to start this (using a script) from rc.local, you have to use some tricks after the latest XORG updates.
viewtopic.php?f=66&t=168739

For simple, one page applications matchbox-window-manager (has to be installed) is a good choice. The "kiosk" script, mentioned in the above posting, might look like this:

Code: Select all

#!/bin/sh
matchbox-window-manager &
/path/to/yourapplication
sudo shutdown -h now
You must set your RPi to boot to the command line (not to the desktop!).