"Henry Dominik" <[EMAIL PROTECTED]> wrote
> import AddrBookEntry
>
> class EmplAddrBookEntry(AddrBookEntry):
This says you are creating a new class that inherits
from the *module* AddrBookEntry. Notice that the
error message referred to the module not the class...
You probably meant:
class EmplAddrBookEntry(AddrBookEntry.AddrBookEntry):
> def __init__(self, nm, ph, id, em):
> AddrBookEntry.__init__(self, nm, ph)
Which makes this line become
AddrBookEntry.AddrBookEntry.__init__(self, nm, ph)
HTH,
--
Alan Gauld
Author of the Learn to Program web site
http://www.freenetpages.co.uk/hp/alan.gauld
_______________________________________________
Tutor maillist - [email protected]
http://mail.python.org/mailman/listinfo/tutor