Page 1 of 1

GUI, gauge and touchscreen

Posted: Mon May 21, 2018 10:24 pm
by niixxon
Hello,
I'm trying to create a project with Pi, my part of the project is create the GUI of it, basically I should find a way to display gauges (different shapes, circular, vertical...etc) for different reading of sensors connected to Pi. Also I should provide buttons and sliders to control some functionalities. All of this should be displayed by the touchscreen, what would be the best way to go with it? should i use Kivy or Tkinter? or maybe another library you recommend?

Thanks.

Re: GUI, gauge and touchscreen

Posted: Tue May 22, 2018 9:28 am
by scotty101
Tkinter doesn't have any gauges "built in" with the possible exception of a progress bar. I've made a few tkinter gauges, but (mainly due to my poor graphics skills) they never look that great.

There do appear to be some gauges available for Kivy and you might also want to consider QT (either PyQT or PySide/Qt for Python)

Re: GUI, gauge and touchscreen

Posted: Tue May 22, 2018 11:39 am
by niixxon
Thank you for your answer. Do you know if those gauge that are already available in Kivy can be built with just paython without using the KV language?
Does PyQT supports the official Pi touchscreen?

Re: GUI, gauge and touchscreen

Posted: Tue May 22, 2018 12:05 pm
by scotty101
Both Kivy and PyQT will work with the touchscreen.

I'm not a Kivy expert but I believe you have to use at least a little KV in order to design the layout of the GUI and the coding is done in python.

Re: GUI, gauge and touchscreen

Posted: Tue May 22, 2018 1:29 pm
by RogerW
There is some code here which you might find useful.
viewtopic.php?f=38&t=134854#p897766