I want to make a program with a setup but if the user is clicking in the fullscreen window while the second window is on the screen the second window goes in the back of the fullscreen window and the user needs to restart the program. I would like something oposite from the win.attributes('-topmost',True) command
I don't know anything to fix even if i've searched on google but I get only the oposite. Sorry for my bad english
If I've understood your question correctly, you want a second smaller window (maybe a popup) to not go behind another fullscreen window. You can use
wm_attributes('-topmost', True)for this.wm_attributes('-topmost', True)forces the window that has the attribute to be on top of other windows. You can apply it to any window usingwindow_name.wm_attributes('-topmost', True). Below is a basic example of something you could do: