passing value into a different class
<p>I have an array of data called msg.data[2] where i have used pubsub i now want to pass this data into the PlotCanvasExample Class</p>

<p>Here is where i call the class</p>

<pre><code>self.pubsubText.SetLabel("This is the Contact Map for the chain "+msg.data[0]+" in the PDB file "+msg.data[1])
    frame = self.GetParent()
    sizer = wx.BoxSizer(wx.VERTICAL)
    self.canvas = PlotCanvasExample(self,0, size=(100,100))
    sizer.Add(self.canvas,1,wx.EXPAND,0)
</code></pre>

<p>Here is the class itself</p>

<pre><code>class PlotCanvasExample(plot.PlotCanvas):
    def __init__(self,parent,id,size):
            plot.PlotCanvas.__init__(self,parent,id,style=wx.BORDER_NONE, size=(300,200))
            self.data = [(1,2),(23,2)]
            line = plot.PolyMarker(self.data)
            gc = plot.PlotGraphics([line],"CM view", "x-axis","y axis")
            self.Draw(gc, xAxis=(0,50), yAxis=(0,50))
</code></pre>

<p>How can i pass in the variable msg.data into this class</p>

<p>I am new to python so an explanation of how to do it would be nice so i can understand how to do it next time</p>
