Re: How to rotate speedmeter widget

"'Chris Barker' via wxPython-users" <[email protected]> Sat, 3 Jul 2021 11:16:00 -0700
Newsgroups gmane.comp.python.wxpython
Message-ID <CALGmxELg9-38Fmv5Z1es9bbjcRPbgwYzJ+81=wOecDSBv9WK2A@mail.gmail.com>
I can't tell without looking at the code, which I haven't yet done, but
it's probably an issue with what the origin is of teh angle, It seems it's
the top center, so having a poatiave an negative angle that's the magnitude
with get it "pointing" up.

Try:

self.SpeedWindow3.SetAngleRange(pi / 6, 5 * pi / 6)

Then play with the value to get what you want.

-CHB


On Thu, Dec 24, 2020 at 11:04 PM Phil <[email protected]> wrote:

> Thank you for reading this.
>
> I've been experimenting with this line for quite some time. The display
> is what I have in mind except I'd like it to be rotated 90 degrees
> anticlockwise.
>
>  From wxdemo, third speedmeter:
>
> self.SpeedWindow3.SetAngleRange(-pi/3, pi/3)
>
> Altering the variables changes the look of the display but I cannot see
> how to rotate the display.
>
> --
>
> Regards,
> Phil
>
> --
> You received this message because you are subscribed to the Google Groups
> "wxPython-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/wxpython-users/1b5215c3-925e-8c47-3882-7da7a31f1166%40gmail.com
> .
>


-- 

Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

[email protected]

-- 
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/wxpython-users/CALGmxELg9-38Fmv5Z1es9bbjcRPbgwYzJ%2B81%3DwOecDSBv9WK2A%40mail.gmail.com.