473,404 Members | 2,187 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

Spinning OpenGL.Tk graphics

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
Jul 18 '05 #1
1 2026
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" <mp*****@web.de> schrieb im Newsbeitrag
news:bf*************@news.t-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

Jul 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Rick Muller | last post by:
I have a problem that I would like to get some advice on from other Pythonistas. I currently manage a (soon to be) open source project for displaying molecular graphics for a variety of different...
15
by: oracle411 | last post by:
Hi I'm new to OpenGL, but have an OpenGL application written in CPP that I would like to display on a web browser. Was wondering how this could be done? Thank you very much
3
by: john townsley | last post by:
Hi I want to do some OpenGl stuff with c++ on a winXP (home) machine. I have Borland c++ 5, MVS c++ 5 What C++ do you recommend (any others?)and where do you get the OpenGL stuff. thanks
5
by: Binil | last post by:
I know that OpenGL is written for C/C++ programming languages. How about in C#. How would we display 3D graphics in C# ?
10
by: Bad_Kid | last post by:
which is better for what?
14
by: Jessica Weiner | last post by:
I am writing an application in C# which need to plot graphs and simple shapes (polygons, circles, squares etc). Which library is better for this purpose and why? Thanks.
22
by: MC felon | last post by:
hello. i have a Dev c++ compiler (version 4.0). i wish to start on openGL. How do i enable openGL programming in Dev c++? what exactly do i download? assume me to be a complete fresher and please...
9
by: Achim Domma | last post by:
Hi, I'm developing a GUI app in Python/C++ to visualize numerical results. Currently I'm using Python 2.4 with wx and PyOpenGLContext, but there are no windows binaries for Python 2.5 for quite...
3
by: Leon | last post by:
Hey, i am trying to develop a game, and I am using OpenGL and pthread. (on Ubuntu, so i also use the X library.) Now i have a problem. I have initialized OpenGL in the main thread, and i want to...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.