sam18
Posts: 10
Joined: Mon Jun 22, 2020 7:42 am

recommendations for graphic programming in rpi?

Mon Jul 06, 2020 3:11 pm

hi, i am trying to create a graphic display for my project, however i am not sure of what program to use.
basically, i have to connect my rpi to a hdmi display to show my condition's outcome based on my sensor readings for room occupancy.

i did android studio for awhile previously and i've checked online but reading my sensor's values from my rpi and linking it to android studio seems a little too difficult for me, is there any other method to recommend?

i heard that python has a graphic programming, may i know is there any helpful websites or videos to look at?

i kind of want the display to look like that:
Annotation 2020-07-06 230858.jpg
Annotation 2020-07-06 230858.jpg (20.86 KiB) Viewed 404 times

User avatar
B.Goode
Posts: 10896
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: recommendations for graphic programming in rpi?

Mon Jul 06, 2020 3:31 pm

sam18 wrote:
Mon Jul 06, 2020 3:11 pm
hi, i am trying to create a graphic display for my project, however i am not sure of what program to use.
basically, i have to connect my rpi to a hdmi display to show my condition's outcome based on my sensor readings for room occupancy.

i did android studio for awhile previously and i've checked online but reading my sensor's values from my rpi and linking it to android studio seems a little too difficult for me, is there any other method to recommend?

i heard that python has a graphic programming, may i know is there any helpful websites or videos to look at?

i kind of want the display to look like that:
Annotation 2020-07-06 230858.jpg



i heard that python has a graphic programming, may i know is there any helpful websites or videos to look at?



A couple of options. (There are many more... )

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

pysimplegui https://github.com/PySimpleGUI/PySimple ... /readme.md

User avatar
rpiMike
Posts: 1609
Joined: Fri Aug 10, 2012 12:38 pm
Location: Cumbria, UK

Re: recommendations for graphic programming in rpi?

Mon Jul 06, 2020 3:56 pm

pygame is another

User avatar
clicky
Posts: 511
Joined: Thu Oct 25, 2012 7:34 am

Re: recommendations for graphic programming in rpi?

Mon Jul 06, 2020 4:15 pm

rpiMike wrote:
Mon Jul 06, 2020 3:56 pm
pygame is another
I concur. Pygame is good place to start with.

User avatar
neilgl
Posts: 2605
Joined: Sun Jan 26, 2014 8:36 pm
Location: Near Aston Martin factory

Re: recommendations for graphic programming in rpi?

Mon Jul 06, 2020 4:19 pm

Have a look at YAD and others mentioned in this post https://www.raspberrypi.org/forums/vie ... 1&t=267834
and is that pressure sensor code working now?

sam18
Posts: 10
Joined: Mon Jun 22, 2020 7:42 am

Re: recommendations for graphic programming in rpi?

Tue Jul 07, 2020 1:02 am

okay, thank you. i will try it out!
neilgl wrote: and is that pressure sensor code working now?
i have updated my code, but there is a slight problem, i've posted it on my another post!

sam18
Posts: 10
Joined: Mon Jun 22, 2020 7:42 am

Re: recommendations for graphic programming in rpi?

Wed Jul 22, 2020 2:40 pm

is there a way for the display to loop? as i am reading from sensors that are continuously getting new readings, the display only reads my reading once and display the results once, i have to close and run again for the next reading

User avatar
neilgl
Posts: 2605
Joined: Sun Jan 26, 2014 8:36 pm
Location: Near Aston Martin factory

Re: recommendations for graphic programming in rpi?

Wed Jul 22, 2020 3:05 pm

Not sure what you have coded it in now, but for python with tkinter you can use a timer to regularly update the display.

Return to “General discussion”