Re: [Tutor] Re: Exceptions

2005-04-17 Thread Diana Hawksworth
Golden indeed, Brian! Works like a charm! Thanks heaps. Diana ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Re: Exceptions

2005-04-17 Thread Brian van den Broek
Diana Hawksworth said unto the world upon 2005-04-17 20:05: Brian - thanks for your continuing help! Here is ALL of the code. Sure hope you can help. Cheers. Diana Hi Diana, whew! A bit of an adventure, but I think I've got it. (The adventure comes in as I have used Tkinter about twice. I've don

[Tutor] Re: Exceptions

2005-04-17 Thread Diana Hawksworth
Brian - thanks for your continuing help! Here is ALL of the code. Sure hope you can help. Cheers. Diana # Number 10 # A Guess the Number program # Hawksworth - 28/3/05 from Tkinter import * import random class Application(Frame): """ GUI application - guess the number game. """ def __

[Tutor] Re: exceptions

2005-04-16 Thread Andrei
Diana Hawksworth optusnet.com.au> writes: > I have been trying to trap a string entry by raising an exception. The code follows - but the exception is > never raised. What am I doing wrong? I've snipped the code that is irrelevant to this question. > try: > self.guess = int(self.num