Python Forum
[Tkinter] Tkinter Window Has no Title Bar - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: GUI (https://python-forum.io/forum-10.html)
+--- Thread: [Tkinter] Tkinter Window Has no Title Bar (/thread-35462.html)



Tkinter Window Has no Title Bar - gw1500se - Nov-05-2021

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.


RE: Tkinter Window Has no Title Bar - Larz60+ - Nov-05-2021

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?


RE: Tkinter Window Has no Title Bar - gw1500se - Nov-06-2021

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


RE: Tkinter Window Has no Title Bar - Larz60+ - Nov-06-2021

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/


RE: Tkinter Window Has no Title Bar - gw1500se - Nov-07-2021

(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.