|
From: Paul C. <PC...@sp...> - 2013-08-23 16:32:27
|
Thanks! Bruce suggested the same solution. I'll try it out.
Dr. Paul J. Camp
Physics Department
Spelman College
Atlanta, GA 30314
404-270-5864
"The beauty of the cosmos derives not only from unity in variety
but also from variety in unity"
-- Umberto Eco
The Name of the Rose
From: Kadir Haldenbilen <kha...@ya...>
To: Mark Janssen <dre...@gm...>, Paul Camp
<PC...@sp...>
Cc: vpusers <vis...@li...>
Date: 08/23/2013 03:11 AM
Subject: Re: [Visualpython-users] is there a label attribute for
objects?
You can define a new simple label function of your own, which is
"attached" to an object like the following example:
from visual import *
bb = box()
def objLabel(object, **kwargs):
ll = label(pos=object.pos, **kwargs)
return ll
ol = objLabel(bb, text="Center of a Box")
So now instead of using VPython label function, they can use objLabel
function, with an object attached to it.
Kadir
From: Mark Janssen <dre...@gm...>
To: Paul Camp <PC...@sp...>
Cc: vpusers <vis...@li...>
Sent: Friday, August 23, 2013 2:06 AM
Subject: Re: [Visualpython-users] is there a label attribute for objects?
That's an interesting idea. Most Labels *are* attached to objects.
If an objects label attribute is None, display nothing.
The problem is that Label currently has it's *own* set of attributes,
so one would have to make all Labels have the same characteristics
(which might be acceptable and could be settable in the Frame or
Display object).
Probably is better than Python and the programmer handling all those
separate Label objects.
My $0.02...
Mark
------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and
AppDynamics. Performance Central is your source for news, insights,
analysis and resources for efficient Application Performance Management.
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
Visualpython-users mailing list
Vis...@li...
https://lists.sourceforge.net/lists/listinfo/visualpython-users
|