Re: Problems with focus?



>The problem is when I used this "hide-button" to hide the child window, I
>cannot do anything else until I press the mouse-left button again.
>Is this a problem of focus? I've tried to grab focus into the main window
>after hiding the child window in my callback, but it doesn't work..

you probably connected to the button_press_event. bad idea. in
general, you have to make sure that widgets that receive a button
press also receive button_release. can you try having the hide be done
by the button_release handler?

--p



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]