Python Forum
[Tkinter] On Win 10, no graphical window when run code
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tkinter] On Win 10, no graphical window when run code
#1
Hi
I am learning Python TKInter GUI.
I run following code on my Desktop running windows 10. The code runs but no root window appears.
If I run same code on my laptop, it works fine.
I use Sublime text. I also use Atom. Same problem with both.
I installed newer python-3.9.0-amd64 . Before I was using 3.8.2-amd64.
Problem still the same.
My computer has graphics card recently installed : ATI AMD Radeon HD 7000 series
Previously I was using motherboard graphics when I did not have this issue.
Could the card be causing problem ?
Help !
from tkinter import *

root = Tk()
myLabel = Label(root, text = ' Hello World !')
myLabel.pack()
root.mainloop()
Larz60+ write Nov-01-2020, 06:05 AM:
Please post all code, output and errors (it it's entirety) between their respective tags. Refer to BBCode help topic on how to post. Use the "Preview Post" button to make sure the code is presented as you expect before hitting the "Post Reply/Thread" button.

I fixed for you this time. Please use bbcode tags on future posts. Thank you.
Reply


Messages In This Thread
On Win 10, no graphical window when run code - by ma2020uk - Oct-30-2020, 12:55 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Interaction between Matplotlib window, Python prompt and TKinter window NorbertMoussy 3 492 Mar-17-2024, 09:37 AM
Last Post: deanhystad
  Embedding Matplotlib in graphical user interfaces bobthebuilder 2 2,701 May-19-2020, 09:42 PM
Last Post: bobthebuilder
  tkinter window and turtle window error 1885 3 6,719 Nov-02-2019, 12:18 PM
Last Post: 1885
  [Tkinter] my simple window code is not working antonmichel 8 13,094 Jan-29-2018, 06:24 PM
Last Post: Larz60+
  update a variable in parent window after closing its toplevel window gray 5 9,082 Mar-20-2017, 10:35 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

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