[Tutor] which gets called
John Fabiani
johnf at jfcomputer.com
Fri Apr 6 15:54:28 CEST 2012
Hi,
I want to create a class that inherits two other classes.
class NewClass( A,B)
But both "A" and "B" contain a method with the same name ("onKeyDown").
If my "NewClass" does not contain something to override the methods which one
would be called if
myinstance = NewClass()
myinstance.onKeyDown()
Second to insure the right one is called is it possible to do the following
NewClass(object):
def onKeyDown(self, event):
b.onKeyDown(event)
Johnf
More information about the Tutor
mailing list