Golden indeed, Brian! Works like a charm! Thanks heaps. Diana
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
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
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 __
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