• Advertisement
Sign in to follow this  

TKinter window focus

This topic is 2902 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I'm developping in Delphi, and use PythonToDelphi to script the application. I also use tkinter to have some user-defined forms opened from the script. When I open a tkinter window, it looks as if the main (Delphi) form still has focus, and when the mouse cursor gets over it, I get an exception (there is some feedback from Delphi to Python, amongst other mouse cursor position, that is not appreciated). I've got a few questions related to this issue : - I would have thought that opening a tkinter window would send a Windows message around to deactivate other Windows (i.e. the currently active Delphi form), why is this not the case ? Can I trigger this "manually" from Python ? - Is it possible to deactivate the Delphi (or any other Windows form), overriding the automatic Windows mechanism ?

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement