On Jan 9, 2010, at 6:07 PM, Emanuele Gesuato wrote:
> File
> "/usr/local/lib/python2.6/dist-packages/Dabo-0.9.2-py2.6.egg/dabo/ui/uiwx/dPageFrameMixin.py",
> line 149, in appendPage
> return self.insertPage(self.GetPageCount(), pgCls, caption,
> imgKey, **kwargs)
> File
> "/usr/local/lib/python2.6/dist-packages/Dabo-0.9.2-py2.6.egg/dabo/ui/uiwx/dPageFrameMixin.py",
> line 181, in insertPage
> pg = pgCls(self, **kwargs)
> TypeError: 'module' object is not callable
>
>
> I think there is something *simple* wrong but i don't understand what
> thanks for any help,
It's your 'import' statement for the page class. You have a script
named 'ListinoArticoli', and inside of it a class named 'ListinoArticoli'. When
you say 'import ListinoArticoli', you are referring to the module (script), not
the defined class. Change your import to read:
from ListinoArticoli import ListinoArticoli
... and it should work.
-- 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]