niixxon
Posts: 3
Joined: Mon May 21, 2018 10:07 pm

GUI, gauge and touchscreen

Mon May 21, 2018 10:24 pm

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.

scotty101
Posts: 3680
Joined: Fri Jun 08, 2012 6:03 pm

Re: GUI, gauge and touchscreen

Tue May 22, 2018 9:28 am

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)
Electronic and Computer Engineer
Pi Interests: Home Automation, IOT, Python and Tkinter

niixxon
Posts: 3
Joined: Mon May 21, 2018 10:07 pm

Re: GUI, gauge and touchscreen

Tue May 22, 2018 11:39 am

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?

scotty101
Posts: 3680
Joined: Fri Jun 08, 2012 6:03 pm

Re: GUI, gauge and touchscreen

Tue May 22, 2018 12:05 pm

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.
Electronic and Computer Engineer
Pi Interests: Home Automation, IOT, Python and Tkinter

User avatar
RogerW
Posts: 285
Joined: Sat Dec 20, 2014 12:15 pm
Location: London UK

Re: GUI, gauge and touchscreen

Tue May 22, 2018 1:29 pm

There is some code here which you might find useful.
viewtopic.php?f=38&t=134854#p897766

Return to “Python”