[Tutor] Text Boxes - deleting and inserting
Hugo González Monteverde
hugonz-lists at h-lab.net
Sat Oct 23 19:49:23 CEST 2004
seanf at email.arizona.edu wrote:
> Hey guys,
>
> First of all a quick intro: My name is Sean Fioritto. I'm a CS major at the
> University of Arizona. My dad has been trying to get me to learn Python since
> my freshman year...about 3 years ago. I was finally able to put all the books
> he gave me to use because we're using Python in my AI class - and I have to say
> that if it were possible to have a crush on a programming language, I would be
> drooling over Python at this point. I've only been at it for about a week and I
> already feel like buying Python t-shirts and telling all my CS professors to
> stop teaching Java and teach Python!
Feel exactly the same way....!
> Traceback (most recent call last):
> File "<pyshell#26>", line 1, in -toplevel-
> v.update(m)
> File "C:\home\projects\CritterView.py", line 18, in update
> self.delete(1.0, END)
> NameError: global name 'END' is not defined
This is Tkinter, right? END is a constant that equals 'end', but you
must import that symbol... I think it's in the Tkconstants module, but
you should get the same result if you do:
END = 'end'
so that it will be translated.
or do
from Tkconstants import END
at the beginning
Happy hacking,
Hugo
More information about the Tutor
mailing list