I ran into a problem with things not happening in the order I expected.
In the __init__ method I create a variable (self.done) and then try to
use it in afterInit - but it fails with
AttributeError: DemoForm object has no attribute 'done'
Any clues for me ?
import dabo
dabo.ui.loadUI("wx")
class BaseForm:
def __init__(self):
self.done = True
class DemoForm(dabo.ui.dForm, BaseForm):
def afterInit(self):
print self.done
def main():
app = dabo.dApp()
app.MainFormClass = DemoForm
app.start()
if __name__ == '__main__':
main()
--
Alex Tweedly http://www.tweedly.net
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.8.2/356 - Release Date: 05/06/2006
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users