Re: [Tutor] tk entry focus

2005-07-13 Thread jfouhy
Quoting Ron Weidner <[EMAIL PROTECTED]>: > What's wrong with this code? Or more to the point, > how do you set the focus to an Entry widget? Look at what the error message is saying: > self.cmd.focus() > AttributeError: 'NoneType' object has no attribute > 'focus' Translation: self.cmd is a '

[Tutor] tk entry focus

2005-07-13 Thread Ron Weidner
I've struggled... Now I'm asking... What's wrong with this code? Or more to the point, how do you set the focus to an Entry widget? Traceback (most recent call last): File "./run_dialogue.py", line 33, in ? app = Run_dialogue( root ) File "./run_dialogue.py", line 23, in __init__ sel