Calling class attribute without creating an instance to that class
<p>I would like to initialize a class, then call an attribute which was set during the initialization, but without creating another instance. As a test example:</p>

<pre><code>class t1:
    def __init__(self, skipInit=False):
        if not skipInit:
            print 'Initialized'
            self.var = 123456
        else:
            print 'Not Initialized'

    def returnVar(self):
        return self.var

class t2:
    def getVar(self):
        print t1.returnVar(t1)
</code></pre>

<p>I want to initialize t1 with <code>t1()</code>, and later on, access to <em>var</em> from t2, with <code>t2.getVar(t2)</code> or some other way from within t2. Obviously the above code is not working, and I have a hard time understanding why. </p>

<p>In actuality the classes are in a wxPython program. There is a Frame->Notebook->Panel->MenuBar hierarchy, all in separate files. I set a number of variables during the Panel initialization, and try to access these from one of the menu items on the GUI. At that point panel will already be initialized and shown, which why I added the skipInit switch. Any ideas on how to do this?</p>
