Re: [Tutor] windows and python and shebangs, oh my!

2007-04-04 Thread Luke Paireepinart
Kirk Bailey wrote: > OK, in a script, we include a special statement telling the shell where > to go find the interpeter. This is the first line of the script, and is > a dpecial sort of comment, called informally the shebang. it looks like > this: > #!C:\path\interpeterprogramname > > In window

Re: [Tutor] Newbie question concerning text covering multiple lines

2007-04-04 Thread Kent Johnson
Guba Castro wrote: > Hello, > > I recently started teaching myself Python with Michael Dawson's 'Python > Programming for the Absolute Beginner'. > > My problem is that I am running Python 2.5 under Linux while the book is > based on Python 2.2.3. Apparently this means that I cannot just follow >

[Tutor] Newbie question concerning text covering multiple lines

2007-04-04 Thread Guba Castro
Hello, I recently started teaching myself Python with Michael Dawson's 'Python Programming for the Absolute Beginner'. My problem is that I am running Python 2.5 under Linux while the book is based on Python 2.2.3. Apparently this means that I cannot just follow the programming examples the autho

Re: [Tutor] windows and python and shebangs, oh my!

2007-04-04 Thread John Fouhy
On 05/04/07, Kirk Bailey <[EMAIL PROTECTED]> wrote: > So work with me, windows Pythonistas. CAN I rely on windows definitely > and reliably having .py files associated with the windows python > interpreter, so the script does not need a shebang declaration? Can I > skip this part of the configure/i

[Tutor] windows and python and shebangs, oh my!

2007-04-04 Thread Kirk Bailey
OK, in a script, we include a special statement telling the shell where to go find the interpeter. This is the first line of the script, and is a dpecial sort of comment, called informally the shebang. it looks like this: #!C:\path\interpeterprogramname In windows, this is for the current editi

Re: [Tutor] passing arguments via an instance of a class

2007-04-04 Thread Alan Gauld
"Che M" <[EMAIL PROTECTED]> wrote > > >def OnButton1Button(self, event): > > >self.weightplot = > > > PlotPanel(self.notebook1,xpoints,ypoints) > > > >But this needs to use self to access the member values: > > Doing it this way didn't work--it gave the error: > because, I think, self in

[Tutor] New York City Python Users Group Meeting

2007-04-04 Thread John Clark
Greetings! The next New York City Python Users Group meeting is this Tuesday, April 10th, 6:30pm at at the Millennium Partners office at 666 Fifth Avenue (53rd St. and 5th Ave.) on the 8th Floor. We welcome all those in the NYC area who are interested in Python to attend. However, we need a list o

Re: [Tutor] passing arguments via an instance of a class

2007-04-04 Thread Che M
John Fouhy said: Can you post the full error message (including stack trace and line numbers) and the code for the last function in the stack trace? (i.e. the code where the NameError occurs) It is now working (so I won't post the code/errors unless you think it is useful for people to see),

Re: [Tutor] passing arguments via an instance of a class

2007-04-04 Thread Kent Johnson
Alan Gauld wrote: > "Kent Johnson" <[EMAIL PROTECTED]> wrote > #these are the points I want to be plotted when I push this button xpoints=[2,4,6] ypoints=[10,20,30] self.weightplot = PlotPanel(self.notebook1,xpoints,ypoints) >>> But this needs to use self t

Re: [Tutor] passing arguments via an instance of a class

2007-04-04 Thread Alan Gauld
"Kent Johnson" <[EMAIL PROTECTED]> wrote >>> #these are the points I want to be plotted when I push this button >>>xpoints=[2,4,6] >>>ypoints=[10,20,30] >>>self.weightplot = PlotPanel(self.notebook1,xpoints,ypoints) >> >> But this needs to use self to access the member val

Re: [Tutor] passing arguments via an instance of a class

2007-04-04 Thread Kent Johnson
Alan Gauld wrote: > #This is now the button which is supposed to feed the PlotPanel > #the points it needs. It is a method of the wxFrame (code not shown) >> def OnButton1Button(self, event): >> #these are the points I want to be plotted when I push this button >>xpoints=[2,4,6] >>

Re: [Tutor] passing arguments via an instance of a class

2007-04-04 Thread Alan Gauld
"Che M" <[EMAIL PROTECTED]> wrote > My problem is I don't understand how to create > the class such that it a) expects to be passed two lists, You've done that correctly by creating an init that takes xpoints and ypoints and storing those as members of self. > b) hands those lists off to its dr