Python Forum

Full Version: Tkinter Window Has no Title Bar
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am unable to get started with tkinter. I wrote this simple python3 script:

import tkinter as tk
top=tk.Tk()
top.title("Title")
top.mainloop()
The result is just a gray window with no title bar. What am I missing? TIA.
I tried and it worked for me:
[attachment=1368]
what do you see if you enter following on command line: python -V
Is this the version you expected?
what is your OS?
Thanks for the reply. I'm running this on Windows 7 under Cygwin/X ( 3.3.1-1/1.4.16-7).

Python 3.8.10
Why not just install directly on windows 7?
It's possible that Cygwin has something to do the strange operation.

You can install 3.7.12 directly on windows 7, it's the highest version available for direct load on that OS.
Available here: https://www.python.org/downloads/release/python-3712/
(Nov-06-2021, 05:21 PM)Larz60+ Wrote: [ -> ]Why not just install directly on windows 7?
It's possible that Cygwin has something to do the strange operation.

You can install 3.7.12 directly on windows 7, it's the highest version available for direct load on that OS.
Available here: https://www.python.org/downloads/release/python-3712/

I need it to run under cygwin but I am sure you are correct as it works on CentOS 7. However I have another problem there so I will start a new thread.