wxPython: How to refresh and draw on wx.Frame from an unrelated class
<p>I have two classes in an application and the first is a wx class, which is instantiated as follows:</p>

<pre><code>if __name__ == '__main__':
    app = wx.App()
    ExampleFrame(None, 'Does Nothing')
    NewX = X(sys.argv)
    app.MainLoop()
</code></pre>

<p>The class itself looks like the following:</p>

<pre><code>class ExampleFrame(wx.Frame):
    def __init__(self, parent, title):
        super(ExampleFrame, self).__init__(parent, title=ttl, size=(600, 600))
        self.Centre()
        self.Show()

    def DrawLine(self, x1, y1, x2, y2):
        dc = wx.ClientDC(self)
        dc.DrawLine(x1, y1, x2, y2)

    def Clear():
        self.Hide
        self.Show
        # NOW DRAW SOME LINES....
</code></pre>

<p>The other Class instance is say, Class X, where I try to call ExampleFrame.Clear(), but it fails.</p>

<p>My question is, How do I call the Clear() method in ExampleFrame from Class X? What am I missing?</p>

<p>EDIT: When the python script fails, it does throw some sort of error, but the window closes too quickly to see what it states.</p>
