"Che M" <[EMAIL PROTECTED]> wrote
>>Instead of using the class create an instance(aka object)
>>self.plotPanel = PlotPanel(mypoints,self.notebook1)
> This worked great, thanks! One question: you mention that in this
> way it
> is passing in the mypoints list and also the notebook1. Wh
>Instead of using the class create an instance(aka object)
>
>self.plotPanel = PlotPanel(mypoints,self.notebook1)
>
>That creates an instance passing the mypoints list in
>to youir init method along with the notebook1 that you
>pass when you create an instance later (see below).
This wor
"Che M" <[EMAIL PROTECTED]> wrote
> Thank you, Alan. I started by adding a method called addPoints()
> to my
> class as you recommend. But now I don't know how to pass a list of
> points
> to the addPoints() method.
You need to create an instance of a PlotPanel.
> class PlotPanel(wx.lib.plo
Thank you, Alan. I started by adding a method called addPoints() to my
class as you recommend. But now I don't know how to pass a list of points
to the addPoints() method. Here's the relevant code, adding in your
suggestions:
class PlotPanel(wx.lib.plot.PlotCanvas):
def __init__(self,