johnf wrote:

> That's a good question.  What is a dynamic property and how does it is 
> different than a plain property?

A plain property takes a value. checkbox.Enabled = False will disable 
the checkbox. A dynamic property takes a function. This function will be 
evaluated at the proper time by Dabo to dynamically determine the value 
of the property.

def dynEnabled():
        import datetime
        return datetime.datetime.now().minute > 30

checkbox.DynamicEnabled = dynEnabled

Now, the checkbox will be enabled only in the last half of each hour.


Paul

-- 
http://paulmcnett.com


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/dabo-users/[EMAIL PROTECTED]

Reply via email to