View Single Post
Old 01-07-2018, 11:22 AM   #263
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,911
Karma: 6120478
Join Date: Nov 2009
Device: many
On a Mac, python tk mainwindows do not automatically grab focus or come to the surface. They are often hidden under other Windows. You need to click on the Python launcher icon that gets added to the end of the Dock to force that window to the front and make it take focus.

There is a workaround in Python to force the main window to the front and grab focus.

See my FolderIn or FolderOut or ePub3-itizer plugin code that uses this workaround for tk graphics to work as expected on a Mac

See the needed code here:

https://github.com/kevinhendricks/eP.../src/plugin.py

the bulk of the Tk stuff starts near line 262. The added code is under the darwin if.

Last edited by KevinH; 01-07-2018 at 11:33 AM.
KevinH is offline   Reply With Quote