On May 4, 2009, at 9:36 AM, bijurama wrote:

> class MyCheckBox(dabo.ui.dCheckBox):
>       def afterInit(self):
>               MyCheckBox.doDefault()

        This should be: self.doDefault()

>               self.Caption = "Test Checkbox"
>               self.bindEvent(dabo.dEvents.Hit, self.onHit)
>               
>       def onHit(self, evt):
>               print "Checkbox hit!"
>
> if __name__ == "__main__":
>       app = dabo.dApp()
>       app.setup()
>       app.MainFrame.addObject(MyCheckBox, "chkTest")
>       app.start()
[snip]
> AttributeError: 'dApp' object has no attribute 'MainFrame'

        Close: it's app.MainForm


-- Ed Leafe



_______________________________________________
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/[email protected]

Reply via email to