Re: Sliders and other stuff

Bruce Sherwood <[email protected]> Wed, 6 Mar 2013 20:13:00 -0700
Newsgroups gmane.comp.python.visualpython.user
Message-ID <CAFDG03guemecP5oZ46OxaECwSyMH2Ses9p_k+FqEUuqc8Z0r3w@mail.gmail.com>
--===============1844931651684271920==
Content-Type: multipart/alternative; boundary=047d7b15a33d84cef204d74d15bd

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

There's now a Google forum for VPython users, and this email list is being
phased out. The forum is here:

https://groups.google.com/forum/?fromgroups&hl=en#!forum/vpython-users

Presumably you're using the old "import controls", in which case note that
the documentation states that "Every controls window has the attribute
display; sphere(display=c.display) will place a sphere in the controls
window named c." So you can put anything you want in the controls window.

The 2D label object can be used to label elements of the scene.

I don't know what you mean by "the 2D rectangle".

Bruce Sherwood


On Sat, Mar 2, 2013 at 10:22 AM, Dan Aldrich <[email protected]> wrote:

>  Couple of questions:
>
> - Can labels and/or tick marks be placed on sliders?
> - Can 2D objects be in 3D windows (I'm guessing no)? Would like to mark
> references within the 3D space.
>
>
> Doing a simple model of a PN junction, want to show how the depletion
> region grows and shrines with applied bias voltage. It's working, but would
> like to polish it a bit.
>
> First attempt was using the 2D rectangle, but couldn't get the slider to
> change the width of the rectangle. Making the object a box worked just fine.
>
> Thanks,
> -d
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_feb
> _______________________________________________
> Visualpython-users mailing list
> Visualpython-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/visualpython-users
>

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

<div dir=3D"ltr">There&#39;s now a Google forum for VPython users, and this=
 email list is being phased out. The forum is here:<div><br></div><div><a h=
ref=3D"https://groups.google.com/forum/?fromgroups&amp;hl=3Den#!forum/vpyth=
on-users">https://groups.google.com/forum/?fromgroups&amp;hl=3Den#!forum/vp=
ython-users</a></div>
<div><br></div><div style>Presumably you&#39;re using the old &quot;import =
controls&quot;, in which case note that the documentation states that &quot=
;<span style=3D"color:rgb(0,0,0);font-family:sans-serif;font-size:13px;text=
-align:justify">Every controls window has the attribute display</span><span=
 style=3D"color:rgb(0,0,0);font-family:sans-serif;font-size:13px;text-align=
:justify">; sphere(display=3Dc.display) will place a sphere in the controls=
 window named c.&quot; So you can put anything you want in the controls win=
dow.</span></div>
<div style><span style=3D"color:rgb(0,0,0);font-family:sans-serif;font-size=
:13px;text-align:justify"><br></span></div><div style><span style=3D"color:=
rgb(0,0,0);font-family:sans-serif;font-size:13px;text-align:justify">The 2D=
 label object can be used to label elements of the scene.</span></div>
<div style><span style=3D"color:rgb(0,0,0);font-family:sans-serif;font-size=
:13px;text-align:justify"><br></span></div><div style><span style=3D"color:=
rgb(0,0,0);font-family:sans-serif;font-size:13px;text-align:justify">I don&=
#39;t know what you mean by &quot;the 2D rectangle&quot;.</span></div>
<div style><span style=3D"color:rgb(0,0,0);font-family:sans-serif;font-size=
:13px;text-align:justify"><br></span></div><div style><span style=3D"color:=
rgb(0,0,0);font-family:sans-serif;font-size:13px;text-align:justify">Bruce =
Sherwood</span></div>
</div><div class=3D"gmail_extra"><br><br><div class=3D"gmail_quote">On Sat,=
 Mar 2, 2013 at 10:22 AM, Dan Aldrich <span dir=3D"ltr">&lt;<a href=3D"mail=
to:[email protected]" target=3D"_blank">[email protected]</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">=C2=A0Couple of questions:<br>
<br>
- Can labels and/or tick marks be placed on sliders?<br>
- Can 2D objects be in 3D windows (I&#39;m guessing no)? Would like to mark=
 references within the 3D space.<br>
<br>
<br>
Doing a simple model of a PN junction, want to show how the depletion regio=
n grows and shrines with applied bias voltage. It&#39;s working, but would =
like to polish it a bit.<br>
<br>
First attempt was using the 2D rectangle, but couldn&#39;t get the slider t=
o change the width of the rectangle. Making the object a box worked just fi=
ne.<br>
<br>
Thanks,<br>
-d<br>
---------------------------------------------------------------------------=
---<br>
Everyone hates slow websites. So do we.<br>
Make your web apps faster with AppDynamics<br>
Download AppDynamics Lite for free today:<br>
<a href=3D"http://p.sf.net/sfu/appdyn_d2d_feb" target=3D"_blank">http://p.s=
f.net/sfu/appdyn_d2d_feb</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>
</blockquote></div><br></div>

--047d7b15a33d84cef204d74d15bd--


--===============1844931651684271920==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
--===============1844931651684271920==
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

--===============1844931651684271920==--