Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Lost widget focus

Status
Not open for further replies.

Czollli

Programmer
Joined
Feb 29, 2004
Messages
9
Location
HU
Hi All,

after pushing "OK" on the button of messagebox the
entry widget is not accessible. How could I bring it
to work ?
This is only a little sample and in a more complex application in this case if I choose menus or something else the entry will work again, but I'd like to understand why it works so.

set w .
wm title $w "Title"
label .l -text "Comment"
entry .e -width 90 -textvariable comment
pack .l .e
tk_messageBox -message "Test"

Thanks
Czollli
 
I don't really do much with "focus". I just deal with it how it's dealt. However, I think this it where the good information might be:
Bob Rashkin
rrashkin@csc.com
 
Thanks, but I also have already tried with focus, but it didn't work.
I thought of focus because when I switch to another window then back to my app, it works.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top