Ed,
It works when dForm.Layout is commented out and I put the call to layout.
However, shouldn't we also consider putting the code below (or at least an
equivalent) in as well so that the user doesn't have to worry about making
the layout call themselves?
def __updateObjectDynamicProps(self, obj):
for prop, func in obj._dynamic.items():
if isinstance(func, tuple):
args = func[1:]
func = func[0]
else:
args = ()
setattr(obj, prop, func(*args))
#LAL - If DynamicVisible is toggled then we should call layout since the
sizer may need to be adjusted to fit the now visible ( or invisible) control
if prop=='Visible':
try:
dabo.ui.CallAfterInterval(100,obj.Parent.layout)
except:
pass
Larry
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Ed Leafe
Sent: Thursday, November 20, 2008 5:13 PM
To: Dabo developers' list
Subject: Re: [dabo-dev] Update/Layout issue with Dynamic Properties
On Nov 20, 2008, at 4:09 PM, <[EMAIL PROTECTED]> wrote:
> dForm.Layout
Hmmm... that's really odd. Can you comment out that entire method,
and let me know what the effect is, if any?
-- Ed Leafe
[excessive quoting removed by server]
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]