View Single Post
Old 01-11-2018, 12:02 AM   #60
snooks
Banned
 
Join Date: Sep 2015
Posts: 1,650
Default

Quote:
Originally Posted by Veto View Post
There could be an issue setting Tkinter windows to foreground on OSX (see https://stackoverflow.com/q/1892339 for reference)

So if you still have enough motivation you could also do this:
Uncomment/comment all numbered blocks and try out if you see any difference with every block.
PHP Code:
import sys
import os
import tkinter

sys
.argv=["Main"]

root=tkinter.Tk()

### 1
root.lift()

### 2
#os.system('''/usr/bin/osascript -e 'tell app "Finder" to set frontmost of process "Python" to true' ''')

### 3
#os.system('''/usr/bin/osascript -e 'tell app "Finder" to set frontmost of process "python" to true' ''')

### 4
#root.attributes('-topmost', 1)
#root.update()
#root.attributes('-topmost', 0)

### 5
#root.iconify()
#root.deiconify()

lbl=tkinter.Label(roottext="Hello World")
lbl.pack()
root.mainloop() 
It's a shame to leave this issue hanging. Could a Mac user please test these options out to see if there is a fix?
snooks is offline   Reply With Quote