hannulan
May 17th, 2008, 06:00 PM
What does this message mean?
I have a class called diagram and one called kalender with the constructors __init__(self,frame) and __init__(self,frame,diagram)
In the constructor in the kalender class (created after the diagram) I then want to call the function test(self,text) wich is an attribute to the diagram class.
I have done that in different ways, but not with any success.
__init__(self,frame,diagram)
self.Diagrammet = diagram
self.Diagrammet.test()
give me the error "AttributeError: 'module' object has no attribute 'test'"
which also is the result from the code:
diagram.test()
Can someone explain what I'm doing?
I have a class called diagram and one called kalender with the constructors __init__(self,frame) and __init__(self,frame,diagram)
In the constructor in the kalender class (created after the diagram) I then want to call the function test(self,text) wich is an attribute to the diagram class.
I have done that in different ways, but not with any success.
__init__(self,frame,diagram)
self.Diagrammet = diagram
self.Diagrammet.test()
give me the error "AttributeError: 'module' object has no attribute 'test'"
which also is the result from the code:
diagram.test()
Can someone explain what I'm doing?