3 somethingHappened =
False
7 global somethingHappened
8 somethingHappened =
True
9 print "I sleep all night and I work all day!"
14 print "button text ", a.ButtonText
15 print "menu text ", a.MenuText
16 print "description ", a.Description
17 print "category ", a.Category
18 print "checked ", a.Checked
19 print "indeterminate ", a.Indeterminate
20 print "visible ", a.Visible
21 print "enabled ", a.Enabled
22 print "dynamic ", a.Dynamic
23 print "shortcut ", a.Shortcut
25 action = MaxPlus.ActionFactory.Create(
26 'Do something',
'Python demo', doSomething)
29 assert(
not somethingHappened)
31 assert(somethingHappened)
33 assert(somethingHappened)