how to install Tkinter to Pycharm(community edition)?

It gives me error when i run my "Tkinter" code.It says "Tk() was not defined". I tried to download Tkinter on PyCharm but there are a lot of them. Well, I don't know what to do. Help please.

2

1 Answer

Install future instead of Tkinter on Pycharm. In the Pycharm console, install future as

pip install future

after install is done, use below to import Tkinter

from future.moves import tkinter

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like