Much simpler structure for VPython-wx

Bruce Sherwood <[email protected]> Thu, 17 Jan 2013 15:54:43 -0700
Newsgroups gmane.comp.python.visualpython.user
Message-ID <CAFDG03g5z4bXO-JTxRLrOz71PKG-aqhxuhv2bQfBLSf=QnyNZg@mail.gmail.com>
--===============4771175054826582639==
Content-Type: multipart/alternative; boundary=e89a8ff2447b79d39904d383e1e9

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

Steve Spicklemire figured out a much simpler scheme for VPython-wx which
eliminates the strange "double import" structure I had created, in which
you import visual, and visual imports you.

Instead, he uses the "atexit" module to define a function to be called at
the end of a Python program. That end-of-program function enters and
endless while loop containing rate(30), which keeps the graphics window
alive for zoom and spin. There is no double import.

Many thanks, Steve!

Bruce Sherwood

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

<div dir=3D"ltr">Steve Spicklemire figured out a much simpler scheme for VP=
ython-wx which eliminates the strange &quot;double import&quot; structure I=
 had created, in which you import visual, and visual imports you.<div><br>
</div><div style>Instead, he uses the &quot;atexit&quot; module to define a=
 function to be called at the end of a Python program. That end-of-program =
function enters and endless while loop containing rate(30), which keeps the=
 graphics window alive for zoom and spin. There is no double import.</div>
<div style><br></div><div style>Many thanks, Steve!</div><div style><br></d=
iv><div style>Bruce Sherwood</div></div>

--e89a8ff2447b79d39904d383e1e9--


--===============4771175054826582639==
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. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122712
--===============4771175054826582639==
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

--===============4771175054826582639==--