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
©2008 Paul McNett |