Newbe question on passing variable data between functions



  • I am new to Python, and even newer to Pyqt5. I am trying to pass variable data from two of my defined functions to a third. I have attached the python I am working on. Is there a way to have data from the "def active(self):" and "def radeccalc(self):" functions available to the "def tracking(self):" function. I have tried what I think are the normal ways and they do not work.

    [0_1542393589194_3m_positionRT4.py](Uploading 100%)

    Thank you

    Jack



  • Function declaration:

    def samFunction(self,value):
            print("This is sample function call ",value)
    

    Function calling:

    self.samFunction(10)
    

    I have PyQt5 installed in my machine.


Log in to reply