From: Bruce S. <Bru...@nc...> - 2009-01-01 21:29:11
|
In Visual 5 you can read the window width and height (but to change them you first have to make the scene invisible): box() scene.mouse.getclick() print scene.width, scene.height It is true that you can't read these data in Visual 3. More generally, it's fair to say that currently VPython doesn't provide good mechanisms for creating graphical user interfaces. It's good for navigable 3D animations, but not for a variety of other uses. Bruce Sherwood Stef Mientki wrote: > hello, > > The label item has nice properties to position the text absolute in a frame, > through xoffset / yoffset, > so it's not affected by zooming. > > But it's still moves when the window is resized. > > Now the windows parameters width and height are not available, when the > window is shown. > Therefor it doesn't seem possible to position the text in the upper left > corner and keep it there, > unless you place the center in the upper left corner. > > How are others position fixed texts ? > (btw most scripts I've seen now, doesn't use xoffset / yoffset, why ? ) > > thanks, > Stef > > > ------------------------------------------------------------------------------ > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users > |