From: C A. R. <an...@ex...> - 2010-07-17 18:48:01
|
On Sat, Jul 17, 2010 at 1:07 PM, Bruce Sherwood <bas...@nc...> wrote: > The current version of VPython (5.32) offers a text object as well as a > label object. The label object always faces the viewer, independent of > rotation, whereas the (new) text object is extruded text that behaves like > all other objects. Seems like one of these two should do what you want. The > text object can have zero thickness. > I'm not sure what you mean by a "time" display, but presumably you know > about the graphing option. > Bruce Sherwood i think what the OP is looking for is HUD functionality, ie. the "time" display stays locked to the viewport, regardless of zoom or rotation. AFIAK this is not currently supported in vpython. however, the same effect can be achieved by using a "HUD frame" and constantly recomputing it's position/zoom/rotation as the main frame moves. the other option is to put your app into a "container" frame, and ensure the main frame never moves... anything added to the main frame is a part of the HUD; i think the issue with this was mouse grabs are sent to the main frame (IIRC). sorry, i don't have any code examples on hand :-( C Anthony |