def __methodDict(cls, _dict):
 baseList = list(cls.__bases__)
 baseList.reverse()
 for _super in baseList:
  __methodDict(_super, _dict)
 for (key, value) in cls.__dict__.items():
  if (type(value) == types.FunctionType):
   _dict[key] = value

def __methodDict ( cls , _dict ) : baseList = list ( cls . __bases__ ) baseList . reverse ( ) for _super in baseList : __methodDict ( _super , _dict ) for ( key , value ) in cls . __dict__ . items ( ) : if ( type ( value ) == types . FunctionType ) : _dict [ key ] = value
helper function for scrolled canvas .