Delboy82
Posts: 3
Joined: Sat Oct 01, 2016 11:48 am

Python Creating Guage

Sat Oct 01, 2016 12:09 pm

Hi All


I creating a little program to monitor temperature and humidity and I would like python to create a GUI windows showing two Guages which update accordingly.

Could anyone provide a good tutorial on howto do this?

Example Guage
https://duckduckgo.com/?q=temp+guage+im ... 773355.jpg


I am new two python so any help would be appreciated.

Many thanks
Ric

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

Re: Python Creating Guage

Sun Oct 02, 2016 4:36 pm

Have a look at this link
viewtopic.php?f=38&t=134854&p=8977

You could use or adapt the meter classes to do what you need.

You need to put the two files (meter.py and trymeter.py) in the same directory and then run trymeter.

Delboy82
Posts: 3
Joined: Sat Oct 01, 2016 11:48 am

Re: Python Creating Guage

Sun Oct 02, 2016 6:26 pm

Hi RogerW


Thanks for your response but unfortunately I could not find the files your referring to. Please could you let me know where to download them.

Thanks
Ric

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

Re: Python Creating Guage

Sun Oct 02, 2016 6:59 pm

There is another post by @RogerW here which may help -

viewtopic.php?f=38&t=134854#p897766

(Looks like the previously supplied url might have got truncated, but it was trivial to track it down, Google is a great tool!)

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

Re: Python Creating Guage

Sun Oct 02, 2016 9:35 pm

Yes thats the one I meant. Not sure why my link whent wrong.

MarkDH102
Posts: 357
Joined: Fri Feb 13, 2015 3:18 pm

Re: Python Creating Guage

Mon Oct 03, 2016 2:41 pm

MyMeter.jpg
MyMeter.jpg (41.32 KiB) Viewed 874 times
And here's the gauge in action.
I've made it resizable and added min/max pointers.
It may not be to everyone's taste but it does for me!
Sorry about the poor quality of the image but I can't upload anything bigger than 64K

Delboy82
Posts: 3
Joined: Sat Oct 01, 2016 11:48 am

Re: Python Creating Guage

Mon Oct 03, 2016 6:52 pm

Thanks guys that seems to of of answered my question I will now go away and have a play around.

:D :D

Thanks
Ric

Return to “Python”