Re: [Tutor] Question on tkinter event binding

2010-12-04 Thread Albert-Jan Roskam
["CWI", "MIT"])}) ~~ All right, but apart from the sanitation, the medicine, education, wine, public order, irrigation, roads, a fresh water system, and public health, what have the Romans ever done for us? ~~

Re: [Tutor] Question on tkinter event binding

2010-12-04 Thread Steven D'Aprano
Albert-Jan Roskam wrote: Meanwhile, I tinkered a bit more with the code. I used exec() to isolate the event handler function. It works and it's better, but I think it could be still better. I'm not so fond of eval() and exec(). They have their uses, but yes, it's best to avoid them unless you

Re: [Tutor] Question on tkinter event binding

2010-12-04 Thread Steven D'Aprano
Evert Rol wrote: I actually find it a bit weird that a (programming?) company has a coding convention for non-English names; makes it harder if you want to hire non-Dutch speaking employees, distribute software (& code) internationally etc. I can't put my hands on the reference right now, bu

Re: [Tutor] Question on tkinter event binding

2010-12-04 Thread Albert-Jan Roskam
) company has a coding convention for non-English names; makes it harder if you want to hire non-Dutch speaking employees, distribute software (& code) internationally etc. Cheers, Evert > > Cheers!! > Albert-Jan > > ~~ > All right, but apart from the sanitati

Re: [Tutor] Question on tkinter event binding

2010-12-04 Thread Evert Rol
~~ > All right, but apart from the sanitation, the medicine, education, wine, > public order, irrigation, roads, a fresh water system, and public health, > what have the Romans ever done for us? > ~~ > > > From: Patty > To: Albert-Jan Rosk

Re: [Tutor] Question on tkinter event binding

2010-12-04 Thread Albert-Jan Roskam
or the future. Thanks for sharing. Patty - Original Message - >From: Albert-Jan Roskam >To: Albert-Jan Roskam ; Python Mailing List >Sent: Friday, December 03, 2010 12:18PM >Subject: Re: [Tutor] Question on tkinterevent bindi

Re: [Tutor] Question on tkinter event binding

2010-12-03 Thread Terry Carroll
On Fri, 3 Dec 2010, Albert-Jan Roskam wrote: I'm trying to make a small improvement on a data entry program and it is literally giving me a headache. Followed shortly thereafter with: On Fri, 3 Dec 2010, Albert-Jan Roskam wrote: Aaahhh, got it! Peace! ... I'll paste the working code below. I

Re: [Tutor] Question on tkinter event binding

2010-12-03 Thread Patty
; Python Mailing List Sent: Friday, December 03, 2010 12:18 PM Subject: Re: [Tutor] Question on tkinter event binding I'll paste the working code below. It's partially in Dutch, but hey, so is Guido van Rossem. ;-) ___ Tuto

Re: [Tutor] Question on tkinter event binding

2010-12-03 Thread Albert-Jan Roskam
Aaahhh, got it! Peace! I did two things wrong: (1) I didn't use a tcl StringVar() to get the entry widget contents (2) I didn't consistently close the menus generated by previous attempts to run the program, which led to inconsistent results. I'll paste the working code below. It's partially i