title: Access variables created in a method of another class
body: <p>I would like to recall a variable of another class without having to make it global. I can not make it! Will you help me?</p>
  <pre><code>class labTreeMap(QLabel):
      clickedQL = pyqtSignal()
      def mouseReleaseEvent(self,event):
          if event.button() == Qt.LeftButton:
              xTM = event.pos().x()
              yTM = event.pos().y()
              self.clickedQL.emit()
  
  class TreeMap(QWidget):
      def click_TreeMap(self,c):
          xTM=labTreeMap.mouseReleaseEvent.xTM  # recall xTM from here
          yTM=labTreeMap.mouseReleaseEvent.yTM  # recall yTM from here
  </code></pre>