Hi,
I made a little script in TCL/TK, but I have a little bug in it and I want to know if someone know how to solve it. I have a master window with some information in it and I make appear a small window (that I want to have the focus on it). The focus is okay normally, but someone found that when you press in the master window and then scroll the wheel mouse, the focus goes into the master window and the small window disappear (goes to the back of the master window). Here is my code for the small window:
toplevel .user
# ... some code ...
wm deiconify .
focus .user
grab .user
tkwait window .user
Does somebody had the same problem?
Thanks.
I made a little script in TCL/TK, but I have a little bug in it and I want to know if someone know how to solve it. I have a master window with some information in it and I make appear a small window (that I want to have the focus on it). The focus is okay normally, but someone found that when you press in the master window and then scroll the wheel mouse, the focus goes into the master window and the small window disappear (goes to the back of the master window). Here is my code for the small window:
toplevel .user
# ... some code ...
wm deiconify .
focus .user
grab .user
tkwait window .user
Does somebody had the same problem?
Thanks.