Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Python
  3. Question
Python

Tkinter module not callable error

Asked by Brian Kennedy Jul 14, 2021 1.3K views 1 answer
Share

About this question

Hi. I am trying to write a python code with tkinter. This is my code:

import Tkinter as Tk
root = Tk()
And I am getting this error: root = Tk() TypeError: 'module' object is not callable

How to solve this?


Your answer

1 Answer

More Python discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Python Blogs

Guides, tips and career advice on Python from JanBask experts.