From: Bruce S. <Bru...@nc...> - 2012-12-26 06:45:56
|
On the Windows download page at vpython.org is an experimental VPython based on the cross-platform library wxPython. It requires the 64-bit version of Python 2.7 (link provided). This experimental version differs from the older VPython (5.74 and before) by eliminating nearly all platform-dependent code and by eliminating the threading associated with rendering. This makes it possible for the first time to run on 64-bit Python on the Mac and will simplify maintenance and further development of VPython. It is also likely to make possible adding standard buttons, menus, etc. to a window that contains a VPython scene. The new version makes one essential change to the syntax of VPython programs. Now, an animation loop MUST contain a rate statement, which limits the number of loop iterations per second as before but also when appropriate (about 30 times per second) updates the 3D scene and handles mouse and keyboard events. Without a rate statement, the scene will not be updated until and unless the loop is completed. The heart of the user-interface code (creating windows and handling events) is the file site-packages/visual_common/create_display.py. It is imported by visual/__init__.py and by /vis/__init__.py; the difference is that for convenience visual imports math and numpy, whereas vis doesn't. Please report issues to the Github repository https://github.com/BruceSherwood/vpython-wx, or to the VPython mailing list. Steve Spicklemire is developing simplified installers for all platforms, including Mac and Linux, which should be available in the near future. I've posted a Windows installer using older tools, to offer people an early look at the new VPython. A Python 3 version of wxPython has not yet been released, so we can't yet produce a Python 3 version of VPython based on wxPython. Bruce Sherwood |
From: Bruce S. <Bru...@nc...> - 2012-12-26 16:22:09
|
In response to a question, I expect to build a version for 32-bit Python. Bruce Sherwood On Tue, Dec 25, 2012 at 11:45 PM, Bruce Sherwood <Bru...@nc...>wrote: > On the Windows download page at vpython.org is an experimental VPython > based on the cross-platform library wxPython. It requires the 64-bit > version of Python 2.7 (link provided). > > This experimental version differs from the older VPython (5.74 and before) > by eliminating nearly all platform-dependent code and by eliminating the > threading associated with rendering. This makes it possible for the first > time to run on 64-bit Python on the Mac and will simplify maintenance and > further development of VPython. It is also likely to make possible adding > standard buttons, menus, etc. to a window that contains a VPython scene. > > The new version makes one essential change to the syntax of VPython > programs. Now, an animation loop MUST contain a rate statement, which > limits the number of loop iterations per second as before but also when > appropriate (about 30 times per second) updates the 3D scene and handles > mouse and keyboard events. Without a rate statement, the scene will not be > updated until and unless the loop is completed. > > The heart of the user-interface code (creating windows and handling > events) is the file site-packages/visual_common/create_display.py. It is > imported by visual/__init__.py and by /vis/__init__.py; the difference is > that for convenience visual imports math and numpy, whereas vis doesn't. > > Please report issues to the Github repository > https://github.com/BruceSherwood/vpython-wx, or to the VPython mailing > list. > > Steve Spicklemire is developing simplified installers for all platforms, > including Mac and Linux, which should be available in the near future. I've > posted a Windows installer using older tools, to offer people an early look > at the new VPython. A Python 3 version of wxPython has not yet been > released, so we can't yet produce a Python 3 version of VPython based on > wxPython. > > Bruce Sherwood > |
From: Bruce S. <Bru...@nc...> - 2012-12-26 18:30:06
|
Now available on the Windows download page at vpython.org is a 32-bit version of the experimental VPython that's based on wxPython. Bruce Sherwood |
From: Symion <kn...@ip...> - 2013-01-10 05:38:28
|
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 > > > ------------------------------------------------------------------------------ > Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery > and much more. Keep your Java skills current with LearnJavaNow - > 200+ hours of step-by-step video tutorials by Java experts. > SALE $49.99 this month only -- learn more at: > http://p.sf.net/sfu/learnmore_122612 > > > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users |
From: Bruce S. <Bru...@nc...> - 2013-01-10 15:56:15
|
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...> 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 is a 32-bit > version of the experimental VPython that's based on wxPython. > > Bruce Sherwood > > > ------------------------------------------------------------------------------ > Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery > and much more. Keep your Java skills current with LearnJavaNow - > 200+ hours of step-by-step video tutorials by Java experts. > SALE $49.99 this month only -- learn more at:http://p.sf.net/sfu/learnmore_122612 > > > > _______________________________________________ > Visualpython-users mailing lis...@li...https://lists.sourceforge.net/lists/listinfo/visualpython-users > > > > ------------------------------------------------------------------------------ > Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, > MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current > with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft > MVPs and experts. ON SALE this month only -- learn more at: > http://p.sf.net/sfu/learnmore_122712 > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users > > |
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 > > |
From: Bruce S. <Bru...@nc...> - 2013-01-12 04:06:29
|
Thanks again. Will look into. Bruce Sherwood On Fri, Jan 11, 2013 at 8:38 PM, Symion <kn...@ip...> wrote: > 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...> 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 is a 32-bit >> version of the experimental VPython that's based on wxPython. >> >> Bruce Sherwood >> >> >> _______________________________________________ >> Visualpython-users mailing lis...@li...https://lists.sourceforge.net/lists/listinfo/visualpython-users >> >> _______________________________________________ >> Visualpython-users mailing list >> Vis...@li... >> https://lists.sourceforge.net/lists/listinfo/visualpython-users >> >> > > > > ------------------------------------------------------------------------------ > Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, > MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current > with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft > MVPs and experts. SALE $99.99 this month only -- learn more at: > http://p.sf.net/sfu/learnmore_122912 > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users > > |