Re: [Tutor] which version do i have and how do i change it

2011-08-15 Thread Lisi
On Tuesday 16 August 2011 00:48:08 Walter Prins wrote: > On 16 August 2011 00:43, Connor Merritt wrote: > > So i installed python 2.7.1 on my linux and i bought a book that requires > > python 3 so installed python 3, and i used terminal and typed in python > > -V and it said 2.7.1 how do i get it

[Tutor] help in TKINTER

2011-08-15 Thread aditya
Hello tutors, I wanted some help in using the Tkinter class for button creation, I am not able to add on click events i.e. when I press the button certain action should be performed for example if I press the button named 5, then it should display 5 in the text field . Help will be appreciated.

[Tutor] directory within directory

2011-08-15 Thread questions anon
I would like to open up a bunch of files within a folder within a folder and then process them and output them in another location but with the same folder structure. I seem to having trouble with the folder within folder section. I have a separate folder for each year and then within a year I have

Re: [Tutor] which version do i have and how do i change it

2011-08-15 Thread Walter Prins
On 16 August 2011 00:48, Walter Prins wrote: > The default is probably still Python2 but that does not mean you can't use > Python explicitly. > Meant to say, "can't use Python3 explicitly". ___ Tutor maillist - Tutor@python.org To unsubscribe or cha

Re: [Tutor] which version do i have and how do i change it

2011-08-15 Thread Walter Prins
On 16 August 2011 00:43, Connor Merritt wrote: > So i installed python 2.7.1 on my linux and i bought a book that requires > python 3 so installed python 3, and i used terminal and typed in python -V > and it said 2.7.1 how do i get it to be 3 (i tried deleting it but i > couldn't what should i d

[Tutor] which version do i have and how do i change it

2011-08-15 Thread Connor Merritt
So i installed python 2.7.1 on my linux and i bought a book that requires python 3 so installed python 3, and i used terminal and typed in python -V and it said 2.7.1 how do i get it to be 3 (i tried deleting it but i couldn't what should i do?) ___ Tutor

Re: [Tutor] print to file probelm

2011-08-15 Thread Prasad, Ramit
Hi John, Just as a note, I am looking at the included scripts (and not the linked scripts). I believe the problem you are having is with the lines below. for i in range(len(faces)): f = faces[flist[i]] n = normals[flist[i]] s = s + ",%d" % len(f) for v in f: s = s

Re: [Tutor] print to file probelm

2011-08-15 Thread Peter Otten
John Collins wrote: > Hi, > I'm a baffled beginner. The script below is one of a suite of scripts > written by Simon Tatham a decade ago; > http://www.chiark.greenend.org.uk/~sgtatham/polyhedra/ > http://www.chiark.greenend.org.uk/~sgtatham/polyhedra/polyhedra.tar.gz > > OS: WinXP > Py Ver: 2

[Tutor] print to file probelm

2011-08-15 Thread John Collins
Hi, I'm a baffled beginner. The script below is one of a suite of scripts written by Simon Tatham a decade ago; http://www.chiark.greenend.org.uk/~sgtatham/polyhedra/ http://www.chiark.greenend.org.uk/~sgtatham/polyhedra/polyhedra.tar.gz OS: WinXP Py Ver: 2.7 Script: canvas.py It reads fro

Re: [Tutor] Moveable and Animated Sprites

2011-08-15 Thread Peter Otten
Jordan wrote: > Is there a more Pythonic way to create the class > "MoveableAnimatedSheetSprite" I am using multiple inheritance but I see > that I am really loading the image twice when I call __init__ for > "AnimatedSheetSprite" and "MoveableSprite". Should I just make a > moveable class and hav

Re: [Tutor] Moveable and Animated Sprites

2011-08-15 Thread Alan Gauld
On 15/08/11 03:09, Jordan wrote: Is there a more Pythonic way to create the class "MoveableAnimatedSheetSprite" I am using multiple inheritance but I see that I am really loading the image twice when I call __init__ for "AnimatedSheetSprite" and "MoveableSprite". Should I just make a moveable cla