Re: Experimental 64-bit VPython for Windows based on wxPython

Bruce Sherwood <[email protected]> Fri, 11 Jan 2013 21:06:18 -0700
Newsgroups gmane.comp.python.visualpython.user
Message-ID <CAFDG03iTX5P16bMf88GY7KNmKffq9DiKJ4HiB5hvKi2CFSpVag@mail.gmail.com>
--===============2630401521869101766==
Content-Type: multipart/alternative; boundary=e89a8ff2459bb1b1bf04d30f8814

--e89a8ff2459bb1b1bf04d30f8814
Content-Type: text/plain; charset=UTF-8

Thanks again. Will look into.

Bruce Sherwood


On Fri, Jan 11, 2013 at 8:38 PM, Symion <[email protected]> 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 <[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 is a 32-bit
>> version of the experimental VPython that's based on wxPython.
>>
>>  Bruce Sherwood
>>
>>
>>  _______________________________________________
>> Visualpython-users mailing listVisualpython-users-5NWGOfrQmneRv+LV9MX5ugtCRVl27V+i0wdF1cv0I5s@public.gmane.org://lists.sourceforge.net/lists/listinfo/visualpython-users
>>
>>  _______________________________________________
>> Visualpython-users mailing list
>> Visualpython-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
>> 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
> Visualpython-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/visualpython-users
>
>

--e89a8ff2459bb1b1bf04d30f8814
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Thanks again. Will look into.<div><br></div><div style>Bru=
ce Sherwood</div></div><div class=3D"gmail_extra"><br><br><div class=3D"gma=
il_quote">On Fri, Jan 11, 2013 at 8:38 PM, Symion <span dir=3D"ltr">&lt;<a =
href=3D"mailto:[email protected]" target=3D"_blank">knoware-q6EoVN9bke6IwRZHo2/[email protected]=
m.au</a>&gt;</span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">
 =20
   =20
 =20
  <div text=3D"#000000" bgcolor=3D"#FFFFFF">
    <div>It seems I will have to look more
      closely at &#39;wx&#39;.<br>
      <br>
      More bug reports:<br>
      <br>
      The following snippet returns an empty string for=C2=A0 &#39;__name__=
&#39; <br>
      <br>
      import vis<br>
      print &quot;My name is (%s)&quot; %(__name__)<br>
      <br>
      -----------------------------------------------------<br>
      <br>
      The Second requires some explanation.<br>
      <br>
      When I spin the scene &#39;dragging the mouse with Right key pressed&=
#39;,
      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<div><div class=3D"h5"><br>
      <br>
      <br>
      <br>
      <br>
      <br>
      On 11/01/2013 2:26 AM, Bruce Sherwood wrote:<br>
    </div></div></div>
    <blockquote type=3D"cite"><div><div class=3D"h5">
      <div dir=3D"ltr">Thanks much for the report, including the bug
        report.
        <div><br>
        </div>
        <div>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&#39;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><br>
        </div>
        <div>Bruce Sherwood</div>
      </div>
      </div></div><div class=3D"gmail_extra"><br>
        <br>
        <div class=3D"gmail_quote"><div><div class=3D"h5">On Wed, Jan 9, 20=
13 at 10:03 PM, Symion
          <span dir=3D"ltr">&lt;<a href=3D"mailto:[email protected]" t=
arget=3D"_blank">[email protected]</a>&gt;</span>
          wrote:<br>
          </div></div><blockquote class=3D"gmail_quote" style=3D"margin:0 0=
 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div text=3D"#000000" bgcolor=3D"#FFFFFF"><div><div class=3D"h5=
">
              <div>This is wonderful!!<br>
                I now have Visual Python with a MENU item &#39;Files&#39;,
                running on Windows XP!<br>
                ALL examples have been run without error and everything
                seems very stable.<br>
                <br>
                Specifically I am using:<br>
                =C2=A0=C2=A0=C2=A0 Vpython (&#39;6.00&#39;, &#39;release&#3=
9;) running with Python
                2.7.3 on Windows XP<br>
                <br>
                Of course this=C2=A0 raises lots of questions...<br>
                <br>
                Although &#39;help(vis)&#39; 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>
                =C2=A0=C2=A0=C2=A0 How do I make new window Menu objects?<b=
r>
                =C2=A0=C2=A0=C2=A0 Does Vpython use TCL? or do I have to le=
arn wxPython
                methodologies?<br>
                =C2=A0=C2=A0=C2=A0=C2=A0 Is it possible to make Buttons, Sl=
iders, 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 &#39;error&#39; I have found is this.<br>
                There is this anomalous error report when I am in V-IDLE
                shell and I break program with &#39;ctrl-c&#39;.<br>
                <br>
                Traceback (most recent call last):<br>
                =C2=A0 File &quot;K:\Symion_12_12_12\visdemo.py&quot;, line=
 6<br>
                =C2=A0=C2=A0=C2=A0 import vis<br>
                =C2=A0 File &quot;C:\Python27\lib\site-packages\vis\__init_=
_.py&quot;,
                line 17<br>
                =C2=A0 File
                &quot;C:\Python27\Lib\site-packages\visual_common\rate_plan=
.py&quot;,
                line 122, in __call__<br>
                =C2=A0=C2=A0=C2=A0 sleep(desiredLoopTime - currTime)<br>
                TypeError: &#39;int&#39; 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><br>
                  <br>
                  <br>
                  On 27/12/2012 4:59 AM, Bruce Sherwood wrote:<br>
                </div>
              </div>
              </div></div><blockquote type=3D"cite"><div><div class=3D"h5">
                <div>Now available on the Windows download
                  page at <a href=3D"http://vpython.org" target=3D"_blank">=
vpython.org</a>
                  is a 32-bit version of the experimental VPython that&#39;=
s
                  based on wxPython.
                  <div><br>
                  </div>
                  <div>Bruce Sherwood</div>
                  <br>
                  <fieldset></fieldset>
                  <br>
                </div>
                </div></div><div class=3D"im"><pre>________________________=
_______________________
Visualpython-users mailing list
<a href=3D"mailto:Visualpython-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org" target=3D"_blan=
k">Visualpython-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org</a>
<a href=3D"https://lists.sourceforge.net/lists/listinfo/visualpython-users"=
 target=3D"_blank">https://lists.sourceforge.net/lists/listinfo/visualpytho=
n-users</a>
</pre>
              </div></blockquote>
            </div><div class=3D"im">
            _______________________________________________<br>
            Visualpython-users mailing list<br>
            <a href=3D"mailto:Visualpython-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org" tar=
get=3D"_blank">Visualpython-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org</a><br>
            <a href=3D"https://lists.sourceforge.net/lists/listinfo/visualp=
ython-users" target=3D"_blank">https://lists.sourceforge.net/lists/listinfo=
/visualpython-users</a><br>
            <br>
          </div></blockquote>
        </div>
        <br>
        <fieldset></fieldset>
      </div>
    </blockquote>
    <br>
  </div>

<br>-----------------------------------------------------------------------=
-------<br>
Master Visual Studio, SharePoint, SQL, <a href=3D"http://ASP.NET" target=3D=
"_blank">ASP.NET</a>, C# 2012, HTML5, CSS,<br>
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current<br>
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft<br>
MVPs and experts. SALE $99.99 this month only -- learn more at:<br>
<a href=3D"http://p.sf.net/sfu/learnmore_122912" target=3D"_blank">http://p=
.sf.net/sfu/learnmore_122912</a><br>_______________________________________=
________<br>
Visualpython-users mailing list<br>
<a href=3D"mailto:Visualpython-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org">Visualpython-us=
[email protected]</a><br>
<a href=3D"https://lists.sourceforge.net/lists/listinfo/visualpython-users"=
 target=3D"_blank">https://lists.sourceforge.net/lists/listinfo/visualpytho=
n-users</a><br>
<br></blockquote></div><br></div>

--e89a8ff2459bb1b1bf04d30f8814--


--===============2630401521869101766==
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
--===============2630401521869101766==
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

--===============2630401521869101766==--