3

I am on Linux/CentOS. I have multiple desktop. When I launch this code,and in the meanwhile I change the desktop, the window opens in the current desktop and not in the original one (from which the code has been launched). Is there a way to tell Tk to stay in the desktop from which it has been launched?

from Tkinter import *
import time
time.sleep(5);Tk()
Cœur
  • 37,241
  • 25
  • 195
  • 267
Pierpaolo
  • 1,721
  • 4
  • 20
  • 34

1 Answers1

0

Not directly.. however you can specify where you would like the window to be placed by pixel value. See the following answers

How to specify where a Tkinter window opens?

How to center a window on the screen in Tkinter?

Community
  • 1
  • 1
scotty3785
  • 6,763
  • 1
  • 25
  • 35