Thanks to mawe and Jeff for answering my first question. Next question: is there a way to get Tkinter to display the window without a title bar? I'm an experimental psychologist, and I don't want my participants to easily be able to exit my experiments... so hints on disabling alt-tab would be useful too. (Of course, I'd need a way to do a forced exit for myself.) I've heard that I can get this kind of functionality with pygame, and I'd be happy to see a solution that uses it... but I suppose in the end I'd prefer to do it with just Tkinter if that's possible.
Jump to Post
Here is the code for a title-free Tkinter window.
import Tkinter as tk root = tk.Tk() # eliminate the titlebar root.overrideredirect(1) # your code here ... root.mainloop()
You have to exit the program somehow and could create one exit/quit button that needs secret password to quit.
All 3 Replies
We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.