I'm not sure what this has to do with inheritance. You call ParentClassCall as you would any function, as ParentClassCall(whateverdata). And it is called in that code (ParentClassCall(objectt)).
–
David RobinsonFeb 7 '13 at 17:46

Hi David, when ParentClassCall is called within the socket reciever. I get this message: NameError: global name 'ParentClassCall' is not defined. Which is expected as ParentClassCall is above the SocketReciever class in the hierarchy. I wondering how it could be done.
–
Jonathan KelseyFeb 7 '13 at 17:55

That doesn't have anything to do with a hierarchy or inheritance. In this example, ParentClassCall isn't a class or even a method of a class, it's just a regular function.
–
David RobinsonFeb 7 '13 at 18:08

Ok then, as I said, I am a noob. What I was thinking before was all the code belongs to a file which can be imported as an object hence its sort of an instance of a class, with the ParentClassCall being a function of that 'class'. Either way this does not tell me how I could achieve what I asked.
–
Jonathan KelseyFeb 7 '13 at 18:14

I've changed the name of the question as it not as you say relevant.
–
Jonathan KelseyFeb 7 '13 at 18:19

The problem is that you are trying to access the function before it's defined. The python interpreter reads through the file sequentially, executing commands in order. The class and def keywords are just commands that create (class and function) objects. So, you need to make sure you define all your objects before you start using them.