From: Bruce S. <bas...@nc...> - 2010-07-18 00:21:02
|
You could put the time in an adjoining separate little window. Bruce Sherwood On Sat, Jul 17, 2010 at 5:09 PM, Robert French <rf...@rf...> wrote: > Yes, C Anthony is correct. I want it to stay at an absolute pixel > coordinate (2-D) in the window. Completely unaffected by any rotations or > zooms. The existing objects all move with the frame. > > I had thought about the constantly-reposition option but was hoping there > was something easier. This seems like it would be a common desire. For > example, to put a title or timestamp or something in the display window. > > I'll try those suggestions and see if I can get it to work > > BTW, my application is orbit visualization of spacecraft. I just want the > date and time to stay in one place. > > Thanks. > > On Jul 17, 2010, at 11:20 AM, C Anthony Risinger <an...@ex...> wrote: > > > > > > > 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 > > > > > ------------------------------------------------------------------------------ > > This SF.net email is sponsored by Sprint > > What will you do first with EVO, the first 4G phone? > > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > > _______________________________________________ > > Visualpython-users mailing list > > Vis...@li... > > https://lists.sourceforge.net/lists/listinfo/visualpython-users > > > > > > -- > > Limited filtering has been provided due to external email forwarding. > > For details please review: > http://www.onlymyemail.com/faqs/forwarding.html > > > |