[SOLVED] I cannot run Tkinter in Atom


#1

I want to make Basic GUI in Atom Python with tkinter, but its not working.
Can you guys tell me why? Thank you.

My Packages is:

autocomplete-python by autocomplete-python
emmet by emmetio
Pigments by abe33
file-icons by file-icons
minimap by atom-minimap
script by rgbkrk


#2

Yes, it’s because your code file is called tkinter.py, so when Python goes looking for modules named tkinter to import, the first one it finds is your file, which has no function called Tk().


#3

Thank you, it is SOLVED :slight_smile: