Re: Experimental 64-bit VPython for Windows based on wxPython
Symion <[email protected]> Sat, 12 Jan 2013 14:08:39 +1030
| Newsgroups | gmane.comp.python.visualpython.user |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format. --===============3452475653147414859== Content-Type: multipart/alternative; boundary="------------050003020402050702080704" This is a multi-part message in MIME format. --------------050003020402050702080704 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 <[email protected] > <mailto:[email protected]>> 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 >> Visualpython-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org <mailto:Visualpython-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org> >> https://lists.sourceforge.net/lists/listinfo/visualpython-users > _______________________________________________ > Visualpython-users mailing list > Visualpython-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org > <mailto:Visualpython-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org> > https://lists.sourceforge.net/lists/listinfo/visualpython-users > > --------------050003020402050702080704 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit <html> <head> <meta content="text/html; charset=UTF-8" http-equiv="Content-Type"> </head> <body text="#000000" bgcolor="#FFFFFF"> <div class="moz-cite-prefix">It seems I will have to look more closely at 'wx'.<br> <br> More bug reports:<br> <br> The following snippet returns an empty string for '__name__' <br> <br> import vis<br> print "My name is (%s)" %(__name__)<br> <br> -----------------------------------------------------<br> <br> The Second requires some explanation.<br> <br> When I spin the scene 'dragging the mouse with Right key pressed', the spin stops abruptly!<br> Also when I Zoom in or out, I hit a barrier and the zoom freezes. <br> After some experimentation, it appears the mouse cursor is hitting the Screen Boundary (even though the mouse is invisible).<br> <br> -----------------------------------------------------<br> Symion<br> <br> <br> <br> <br> <br> On 11/01/2013 2:26 AM, Bruce Sherwood wrote:<br> </div> <blockquote cite="mid:CAFDG03jodULWzYR374=yZFrmDXzEd4=m2H2Wh7t8eOWNQci=hw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org" type="cite"> <div dir="ltr">Thanks much for the report, including the bug report. <div><br> </div> <div style="">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.</div> <div style=""><br> </div> <div style="">Bruce Sherwood</div> </div> <div class="gmail_extra"><br> <br> <div class="gmail_quote">On Wed, Jan 9, 2013 at 10:03 PM, Symion <span dir="ltr"><<a moz-do-not-send="true" href="mailto:[email protected]" target="_blank">[email protected]</a>></span> wrote:<br> <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> <div text="#000000" bgcolor="#FFFFFF"> <div>This is wonderful!!<br> I now have Visual Python with a MENU item 'Files', running on Windows XP!<br> ALL examples have been run without error and everything seems very stable.<br> <br> Specifically I am using:<br> Vpython ('6.00', 'release') running with Python 2.7.3 on Windows XP<br> <br> Of course this raises lots of questions...<br> <br> Although 'help(vis)' provides much information and dir(vis.scene.window) reveals 335 instancemethods and 82 other objects.<br> I do have a few questions that are not currently addressed by the documentation.<br> <br> The main one is:<br> How do I make new window Menu objects?<br> Does Vpython use TCL? or do I have to learn wxPython methodologies?<br> Is it possible to make Buttons, Sliders, List Boxes or even Window Panes from WITHIN Visual?<br> <br> I hope the Documentation will eventually address these topics in detail.<br> <br> The Only 'error' I have found is this.<br> There is this anomalous error report when I am in V-IDLE shell and I break program with 'ctrl-c'.<br> <br> Traceback (most recent call last):<br> File "K:\Symion_12_12_12\visdemo.py", line 6<br> import vis<br> File "C:\Python27\lib\site-packages\vis\__init__.py", line 17<br> File "C:\Python27\Lib\site-packages\visual_common\rate_plan.py", line 122, in __call__<br> sleep(desiredLoopTime - currTime)<br> TypeError: 'int' object is not callable<br> <br> Hope this means something to you...<br> <br> Finally, it is really good to see The Project evolving.<br> <br> Symion <div class="im"><br> <br> <br> On 27/12/2012 4:59 AM, Bruce Sherwood wrote:<br> </div> </div> <blockquote type="cite"> <div class="im">Now available on the Windows download page at <a moz-do-not-send="true" href="http://vpython.org" target="_blank">vpython.org</a> is a 32-bit version of the experimental VPython that's based on wxPython. <div><br> </div> <div>Bruce Sherwood</div> <br> <fieldset></fieldset> <br> </div> <pre>_______________________________________________ Visualpython-users mailing list <a moz-do-not-send="true" href="mailto:Visualpython-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org" target="_blank">Visualpython-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org</a> <a moz-do-not-send="true" href="https://lists.sourceforge.net/lists/listinfo/visualpython-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/visualpython-users</a> </pre> </blockquote> </div> _______________________________________________<br> Visualpython-users mailing list<br> <a moz-do-not-send="true" href="mailto:Visualpython-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org">Visualpython-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org</a><br> <a moz-do-not-send="true" href="https://lists.sourceforge.net/lists/listinfo/visualpython-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/visualpython-users</a><br> <br> </blockquote> </div> <br> <fieldset></fieldset> </div> </blockquote> <br> </body> </html> --------------050003020402050702080704-- --===============3452475653147414859== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ 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 --===============3452475653147414859== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Visualpython-users mailing list Visualpython-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/visualpython-users --===============3452475653147414859==--