[wxPython-users] Automotive-type gauge

Chris Mellon arkanes at gmail.com
Wed Aug 1 15:15:39 PDT 2007


On 8/1/07, Andrea Gavana <andrea.gavana at gmail.com> wrote:
> Hi Duane,
>
> On 8/1/07, Duane Kaufman wrote:
> > I am a newbie starting out with wxPython, and I am thinking of writing
> > an app to display some information on-screen, much like an analog gauge
> > would (like an automotive tachometer)
> >
> > I see in the demo that Analogclock has a lot of the look I am looking
> > for, but before I delve into it and break out what I need, I was just
> > wondering if anyone had already done this, and would be willing to share
> > some code?
>
> You might find my implementation of SpeedMeter useful:
>
> http://xoomer.alice.it/infinity77/eng/freeware.html#speedmeter
>
> I almost finished refactoring my web pages, so you might find some
> troubles today or tomorrow... but the code is there :-D
>

Nice work as always Andrea. A one-liner wrapping the DC used for
drawing in a wxGCDC gives very nice anti-aliasing, but makes it quite
a bit slower. Maybe if I can find some time I'll work on a port that's
optimized for wxGraphicsContext. I think it could end up quite faster
than the raster based version.




More information about the wxpython-users mailing list