Hi there:
I am trying to run the following sample code and I get the error seen below
the code ..?
import dabo
dabo.ui.loadUI("wx")
class MyCheckBox(dabo.ui.dCheckBox):
def afterInit(self):
MyCheckBox.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()
***************************error***************************
Dabo Error Log: Mon May 04 10:27:59 2009: Could not connect to the Dabo
servers
Traceback (most recent call last):
File
"\\ubisoft.org\mtlstdcine\UDA_TOOLS\dev-share\sandbox\bramachandran\src\tabla\wxone.py",
line 76, in <module>
app.MainFrame.addObject(MyCheckBox, "chkTest")
AttributeError: 'dApp' object has no attribute 'MainFrame'
--
View this message in context:
http://www.nabble.com/my-first-dabo-code-error-tp23369773p23369773.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]