self.pot.temperatureRaisedSignal.connect(self.temperatureWarning)

def StartMeasure(self):
    self.pot.Boil()

def temperatureWarning(self):
    print('Too high temperature!')
if __name__ == '__main__':
    pot = Pot()
th = Thermometer(pot)
th.StartMeasure()
How to connect pyqtSignal between classes in PyQT