Automotive-type gauge

Hi Chris,

> Hi Duane,
>
> > 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 :smiley:
>

Nice work as always Andrea.

Thank you!

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.

I am not particularly good with wx.GCDC yet, but I would be happy to
look at your implementation if you'll find time to do it. I remember
SpeedMeter contains a lot of wx.DC drawing calls, which I am sure can
be optimized with wx.GCDC. I never tried it on other platforms than
Windows, so the current implementation might be sloppy in Mac or Linux
:frowning:

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/

ยทยทยท

On 8/1/07, Chris Mellon wrote:

On 8/1/07, Andrea Gavana <andrea.gavana@gmail.com> wrote:
> On 8/1/07, Duane Kaufman wrote: