title: PyQt - access data of another interface?
body: <p>I have a python script with 2 classes, each one is a different PyQt interface.</p>
  
  <p>The first one is the main interface, and the second one is a "pop-up interface" - it appears when you click a button in the main interface.</p>
  
  <p>Whenever that pop-up interface is launched via the main interface, i need it to display data coming from the main interface. </p>
  
  <p>How can i do that if they're both in different classes?</p>
  
  <p>For example, main interface:</p>
  
  <pre><code>class MainUI(QtGui.QWidget):
  
  def __init__(self):
      super(QtGui.QWidget, self).__init__()
  
      self.myData = "data"
  </code></pre>
  
  <p>pop-up interface:</p>
  
  <pre><code>class PopUp(QtGui.QDialog):
      def __init__(self, parent=None):
          super(MyDialog, self).__init__(parent)
  
      # some stuff here
  </code></pre>
  
  <p>Thanks!</p>