[Tutor] PAMIE but for linux

2006-01-14 Thread Ismael Garrido
Hi Is there anything like PAMIE but for a linux browser? Even better if it works in windows and linux. PAMIE lets you control Internet Explorer programmatically. I've read about PyXPCOM (for mozilla) but I coudn't find any docs or reference to using it to alter a document (like, clicking butto

Re: [Tutor] Random in loop

2006-01-14 Thread ZIYAD A. M. AL-BATLY
On Sat, 2006-01-14 at 17:52 -0800, ryan luna wrote: > Hello, Im kinda stuck on something in the book Python > Programming. > The "Challenage" is to make a progam that flips a coin > 100 times and then tells you the number of heads and > tails. > here is what i have so far, > Code: > > import rando

Re: [Tutor] Random in loop

2006-01-14 Thread ryan luna
Thank you alot ^^ so simple and i knew it, but last time i tried it i got an error on the =, most have been making a stupid mistake --- "ZIYAD A. M. AL-BATLY" <[EMAIL PROTECTED]> wrote: > On Sat, 2006-01-14 at 17:52 -0800, ryan luna wrote: > > Hello, Im kinda stuck on something in the book > Pyt

[Tutor] Random in loop

2006-01-14 Thread ryan luna
Hello, Im kinda stuck on something in the book Python Programming. The "Challenage" is to make a progam that flips a coin 100 times and then tells you the number of heads and tails. here is what i have so far, Code: import random coin = 0 heads = 0 tails = 0 heads_tails = random.randrange(2) wh

Re: [Tutor] Learning to use pygame but running into errors when using examples from websites

2006-01-14 Thread Adam
On 14/01/06, Rinzwind <[EMAIL PROTECTED]> wrote: Hello,I've been trying to get myself to learn using pygame. I have created some things but I still need help of examples before I can do it myself but I always run  into trouble.On this website I saw a lot of great info regarding pygame: http://www.i

[Tutor] Learning to use pygame but running into errors when using examples from websites

2006-01-14 Thread Rinzwind
Hello,I've been trying to get myself to learn using pygame. I have created some things but I still need help of examples before I can do it myself but I always run  into trouble.On this website I saw a lot of great info regarding pygame: http://www.ida.liu.se/~ETE257/timetable/LecturePythonPygame.h

Re: [Tutor] Complete programming newbie requires tutorial.

2006-01-14 Thread Kent Johnson
Chris Andrew wrote: > Hi, all. > > I wonder whether you can help. I've just subscribed to the list, so > look forward to participating. I have been using GNU/ Linux since about > 1999, but am a complete newbie when it comes to programming. > > I bought the O'Reilly "Learning Python" book, bu

Re: [Tutor] IndexError: list index out of range [ Program work fine , but gives this message , guidance requested ]

2006-01-14 Thread John Joseph
--- Danny Yoo <[EMAIL PROTECTED]> wrote: > >I get the error for set > > >>> set((1,1,1,2,2,2,2,2,3,4,4,5)) > > Traceback (most recent call last): > > File "", line 1, in ? > > NameError: name 'set' is not defined > > Hi John, > > For Python 2.3.4, you'll need to add the line: >

Re: [Tutor] Design suggestion - is a cookie the answer?

2006-01-14 Thread Alan Gauld
> by pressing the refresh button they get the results checked and the > points awarded without any work. This is a combination of my bad > design and their ingenuity (bless 'em). I'd recommend using client side JavaScript for this. Create a submit function in JavaScript that will only actually su

Re: [Tutor] Complete programming newbie requires tutorial.

2006-01-14 Thread John Joseph
--- Chris Andrew <[EMAIL PROTECTED]> wrote: > Hi, all. > > I wonder whether you can help. I've just subscribed > to the list, so look > forward to participating. I have been using GNU/ > Linux since about 1999, > but am a complete newbie when it comes to > programming. > > I bought the O'Rei

[Tutor] Complete programming newbie requires tutorial.

2006-01-14 Thread Chris Andrew
Hi,  all. I wonder whether you can help.  I've just subscribed to the list, so look forward to participating.  I have been using GNU/ Linux since about 1999, but am a complete newbie when it comes to programming. I bought the O'Reilly "Learning Python" book, but have struggled with it.  I note th

[Tutor] Design suggestion - is a cookie the answer?

2006-01-14 Thread Adam Cripps
I've developed a nice but simple cgi script [1] which produces multiplication questions for children in my class. It randomly presents a list of questions and then checks the answers once they push submit. The form builds up a fairly long list of vars which are passed to a method which checks the q