[Python][Tkinter]Unresolved reference 'tkinter'

Hi everyone, recently I reinstalled python 3.8 because there was a bug in my interpreter. Now it works fine but when I started pycharm it recognizes more tkinter despite the fact that the python interpreter I chose is C:\Users\XXXX\AppData\Local\Microsoft\WindowsApps\python.exe.

My code:

from tkinter import *
from a_dl import load
import pickle

window = Tk()
window.title("Activator")
window.iconbitmap("power.ico")
window.minsize(700, 300)
window.maxsize(700, 300)
window.config(background="#99c1de")

5 comments
Comment actions Permalink

Hi,

Sorry, it is not clear what is the issue. Could you provide the error you get (if any), and a screenshot?

0
Comment actions Permalink

it recognizes all the base modules (pickle, os, sys...) but not tkinter

0
Comment actions Permalink

but when I start the configuration with Shift+F10 the program works correctly

0
Comment actions Permalink

Thank you,

What PyCharm version do you use? Have you tried 2020.3.1 aka the latest from https://www.jetbrains.com/pycharm/download/ ?

If the issue is reproduced in the latest version, please provide Logs from **Help | Collect Logs and Diagnostic Data**

You can use our uploading service at https://uploads.jetbrains.com/ , and provide upload ID in your reply.

0
Comment actions Permalink

this bug has been fixed when I updated pycharm to the last update.
thank you for your quick responses!

0

Please sign in to leave a comment.