On Nov 29, 2008, at 2:22 PM, Henning Hraban Ramm wrote:
> It doesn't work like I tried:
>
> class fieeApp(dabo.dApp):
>
> def afterInit(self):
> self.Application.uiApp.MacOpenFile = self.MacOpenFile
>
> def MacOpenFile(self, filename):
> dabo.infoLog.write(u'MacOpenFile: %s' % f)
>
> I always get an AttributeError: 'fieeApp' has no attribute 'uiApp'.
>
> Maybe afterInit is the wrong place - but where else?
App objects are created independent of the UI. The 'uiApp' attribute
is set in dApp.setup().
There really is no hook for this point of the app creation code. I
think it would be a good idea to add an afterSetup() hook method to
dApp, which would be called after the UI has been initialized. Let me
play with it a little bit, and I should have a commit soon.
-- 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]