1

This is the code that I tried.

import tkinter as tk

root = tk.TK()

root.mainloop()

I tried using pycharm and sublime text. Pycharm wont show the blue letters on ".TK", "mainloop" and sublime text just wont let me code inside any of the files. Yes, I have python is my path and also i have python 3.7

1 Answer 1

1

For Python 3 you use:

from tkinter import*

window = Tk()

window.geometry("300x300")

window.title("welcome")

window.mainloop()

I should have been using this code....

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .