Ed Leafe wrote:
>
> 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
>
> Now I am trying a much simpler example and I and getting - Dabo Error
> Log: Mon May 04 11:23:28 2009: Could not connect to the Dabo servers ..?
>
> import dabo
> dabo.ui.loadUI("wx")
>
> app = dabo.dApp()
>
> # IMPORTANT! Change app.MainFormClass value to the name
> # of the form class that you want to run when your
> # application starts up.
> app.MainFormClass = dabo.ui.dFormMain
>
> app.start()
>
>
>
> _______________________________________________
> 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]
>
>
--
View this message in context:
http://www.nabble.com/my-first-dabo-code-error-tp23369773p23370878.html
Sent from the dabo-users mailing list archive at Nabble.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/[email protected]