From: Symion <kn...@ip...> - 2013-01-12 03:38:52
|
It seems I will have to look more closely at 'wx'. More bug reports: The following snippet returns an empty string for '__name__' import vis print "My name is (%s)" %(__name__) ----------------------------------------------------- The Second requires some explanation. When I spin the scene 'dragging the mouse with Right key pressed', the spin stops abruptly! Also when I Zoom in or out, I hit a barrier and the zoom freezes. After some experimentation, it appears the mouse cursor is hitting the Screen Boundary (even though the mouse is invisible). ----------------------------------------------------- Symion On 11/01/2013 2:26 AM, Bruce Sherwood wrote: > Thanks much for the report, including the bug report. > > It is intended to open up VPython to make it possible to add buttons, > sliders, etc., using the capabilities of wxPython (not Tcl). The first > task was simply (well, not so simply) to replicate existing VPython > capabilities. Currently, when you create a display object, that's a > composite in the sense that it creates a window and also creates an > OpenGL canvas that fills that window. Presumably what is needed is a > window object that creates a window, and a canvas object that creates > an OpenGL canvas somewhere in that window, in which case you could > then add other widgets to the window. That would leave the display > object as a convenience object, useful for many ordinary programs. > > Bruce Sherwood > > > On Wed, Jan 9, 2013 at 10:03 PM, Symion <kn...@ip... > <mailto:kn...@ip...>> wrote: > > This is wonderful!! > I now have Visual Python with a MENU item 'Files', running on > Windows XP! > ALL examples have been run without error and everything seems very > stable. > > Specifically I am using: > Vpython ('6.00', 'release') running with Python 2.7.3 on > Windows XP > > Of course this raises lots of questions... > > Although 'help(vis)' provides much information and > dir(vis.scene.window) reveals 335 instancemethods and 82 other > objects. > I do have a few questions that are not currently addressed by the > documentation. > > The main one is: > How do I make new window Menu objects? > Does Vpython use TCL? or do I have to learn wxPython > methodologies? > Is it possible to make Buttons, Sliders, List Boxes or even > Window Panes from WITHIN Visual? > > I hope the Documentation will eventually address these topics in > detail. > > The Only 'error' I have found is this. > There is this anomalous error report when I am in V-IDLE shell and > I break program with 'ctrl-c'. > > Traceback (most recent call last): > File "K:\Symion_12_12_12\visdemo.py", line 6 > import vis > File "C:\Python27\lib\site-packages\vis\__init__.py", line 17 > File "C:\Python27\Lib\site-packages\visual_common\rate_plan.py", > line 122, in __call__ > sleep(desiredLoopTime - currTime) > TypeError: 'int' object is not callable > > Hope this means something to you... > > Finally, it is really good to see The Project evolving. > > Symion > > > > On 27/12/2012 4:59 AM, Bruce Sherwood wrote: >> Now available on the Windows download page at vpython.org >> <http://vpython.org> is a 32-bit version of the experimental >> VPython that's based on wxPython. >> >> Bruce Sherwood >> >> >> _______________________________________________ >> Visualpython-users mailing list >> Vis...@li... <mailto:Vis...@li...> >> https://lists.sourceforge.net/lists/listinfo/visualpython-users > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > <mailto:Vis...@li...> > https://lists.sourceforge.net/lists/listinfo/visualpython-users > > |