Python Forum
[Tkinter] Tkinter Window Has no Title Bar
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tkinter] Tkinter Window Has no Title Bar
#1
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.

Attached Files

Thumbnail(s)
   
Reply
#2
I tried and it worked for me:
   
what do you see if you enter following on command line: python -V
Is this the version you expected?
what is your OS?
Reply
#3
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
Reply
#4
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/
Reply
#5
(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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Interaction between Matplotlib window, Python prompt and TKinter window NorbertMoussy 3 611 Mar-17-2024, 09:37 AM
Last Post: deanhystad
  Tkinter multiple windows in the same window tomro91 1 903 Oct-30-2023, 02:59 PM
Last Post: Larz60+
  Centering and adding a push button to a grid window, TKinter Edward_ 15 5,118 May-25-2023, 07:37 PM
Last Post: deanhystad
  [Tkinter] Open tkinter colorchooser at toplevel (so I can select/focus on either window) tabreturn 4 1,977 Jul-06-2022, 01:03 PM
Last Post: deanhystad
  [Tkinter] Background inactivity timer when tkinter window is not active DBox 4 2,979 Apr-16-2022, 04:04 PM
Last Post: DBox
  why my list changes to a string as I move to another window in tkinter? pymn 4 2,615 Feb-17-2022, 07:02 AM
Last Post: pymn
  [Tkinter] Trouble changing Font within tkinter frame title AnotherSam 1 4,193 Sep-30-2021, 05:57 PM
Last Post: menator01
  "tkinter.TclError: NULL main window" Rama02 1 5,911 Feb-04-2021, 06:45 PM
Last Post: deanhystad
  function in new window (tkinter) Dale22 7 5,285 Nov-24-2020, 11:28 PM
Last Post: Dale22
  Scrollable big image in a window (TKinter) Prospekteur 3 4,543 Sep-14-2020, 03:06 AM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020