Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Allow window to remain on top #445
It seems that there is no way currently to set a flag for the window to always remain on top. This can be a bit annoying when testing gui changes with a full-screen IDE environment like VSCode where the window is created behind the IDE.
I'm also not sure if there's platform specific code required for Win32/Mac/x11 to implement this
Not sure about this one... when the GUI is launched, it should come to the font. However, if you're in full screen, then Windows might be preventing it? What happens when you launch other applications while in fullscreen mode in VSCode?
There is specific code for Mac, which is necessary to have the GUI appear at the front. When you launch it from a fullscreen app (like the terminal) the GUI will appear on a different desktop.
I don't think linux (at least on the raspberry pi) really has fullscreen apps...
OK - I've been doing a bit of googling, the following command will force your GUI to stay on top:
But, currently appJar will override it.
So, you will need to set it as a start function:
def onTop(): app.topLevel.attributes("-topmost", True) app.setStartFunction(onTop)
That forces the window to stay on top in OSX, but still doesn't go over a fullscreen app, instead launching on a separate desktop.
I'm going to add this to appJar as a property.
@NBurley93 can you let me know if it makes any difference?