title: How do I pass variables between class instances or get the caller?
body: <pre><code>class foo():
    def __init__(self)
      self.var1 = 1
  
  class bar():
    def __init__(self):
      print "foo var1"
  
  f = foo()
  b = bar()
  </code></pre>
  
  <p>In foo, I am doing something that produces "var1" being set to 1
  In bar, I would like to access the contents of var1</p>
  
  <p>How can I access var1 in the class instance f of foo from within the instance b of bar</p>
  
  <p>Basically these classes are different wxframes.  So for example in one window the user may be putting in input data, in the second window, it uses that input data to produce an output.  In C++, I would have a pointer to the caller but I dont know how to access the caller in python.</p>