Q:

How to call method of other object in Python?

I am new in python, and I have small problem, I have two classes, and it wrotes this : set_gyro_angle() takes exactly 1 argument (2 given) how can I call set_gyro_angle() method from Machine method? 
class Gyro(object):
    """gyroskop senzor"""
    def __init__(self,gyro_start_angle = 0):
        self.gyro_angle = 0 
    def get_gyro_angle():
        return self.gyro_angle
    def set_gyro_angle(angle):
        self.gyro_angle = angle
        return 0

class Maschine(object):
    def __init__(self, state = "normal",length = 10,width = 15):
        self.length = length
        self.width = width
        self.gyro = Gyro()
    def setPoint(self,alpha):
        self.gyro.set_gyro_angle(alpha)
        return 0

Main: 
maschine  = Maschine()
maschine.setPoint()

A:

If you want to create an instance method, you need to add an extra argument that will be a pointer to your instance. Usually it's self:
class Gyro(object):
    """gyroskop senzor"""
    def __init__(self,gyro_start_angle = 0):
        self.gyro_angle = 0 
    def get_gyro_angle(self):
        return self.gyro_angle
    def set_gyro_angle(self, angle):
        self.gyro_angle = angle
        return 0

And i think you want setPoint to be like this:
def setPoint(self, alpha):
    self.gyro.set_gyro_angle(alpha)

