Spinning OpenGL.Tk graphics

Discussion in 'Python' started by Michael Peuser, Jul 22, 2003.

  1. Python's OpenGL.Tk binding makes simple 3D drawing a snap! The default mouse
    keys for panning and sizing is left and right, for rotation it seems to be
    the middle key which is on just very few people's mouse nowadays.

    Of course I tried obvious and not so obvious shift/alt/contrl/mouse
    combinations- without any success.
    Is there a work-around? The docu for the binding is somewhat obscure and one
    has to guess a lot ;-) I haven't figured out yet how to use AutoSpin ....
    I am using Windows2000

    Thanks for suggestions and may be hints to more detailed documentation.

    Michael
    Michael Peuser, Jul 22, 2003
    #1
    1. Advertising

  2. Maybe I found a work-around:

    o = Opengl()

    o.bind('<B1-Motion>', o.tkTranslate)
    o.bind('<Button-3>', o.StartRotate)
    o.bind('<B3-Motion>', o.tkRotate)
    o.bind('<Shift-Button-1>', o.tkRecordMouse)
    o.bind('<Shift-B1-Motion>', o.tkScale)

    This was taken (but modified) from the OglSurface/Frame example - that demo
    didn't run however before I changed
    some glVertex3f to glVertex3fv .....

    Michael
    ------------
    "Michael Peuser" <> schrieb im Newsbeitrag
    news:bfitk2$ule$01$-online.com...
    > Python's OpenGL.Tk binding makes simple 3D drawing a snap! The default

    mouse
    > keys for panning and sizing is left and right, for rotation it seems to

    be
    > the middle key which is on just very few people's mouse nowadays.
    >
    > Of course I tried obvious and not so obvious shift/alt/contrl/mouse
    > combinations- without any success.
    > Is there a work-around? The docu for the binding is somewhat obscure and

    one
    > has to guess a lot ;-) I haven't figured out yet how to use AutoSpin ....
    > I am using Windows2000
    >
    > Thanks for suggestions and may be hints to more detailed documentation.
    >
    > Michael
    >
    >
    Michael Peuser, Jul 22, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. news.microsoft.com

    [2.0] Error spinning up aspnet_wp

    news.microsoft.com, Oct 5, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    529
    Guest
    Jan 8, 2005
  2. Alex Martelli

    process and spinning slash

    Alex Martelli, Oct 30, 2005, in forum: Python
    Replies:
    6
    Views:
    373
    Fredrik Lundh
    Oct 31, 2005
  3. kdotsky

    urllib2 spinning CPU on read

    kdotsky, Nov 26, 2006, in forum: Python
    Replies:
    3
    Views:
    312
    John J. Lee
    Dec 1, 2006
  4. kleefaj
    Replies:
    1
    Views:
    373
    Tommy Nordgren
    Jan 4, 2009
  5. elyfrank
    Replies:
    3
    Views:
    118
    Gregor Kofler
    May 3, 2008
Loading...

Share This Page