Ask coding questions

← Back to all posts
I have two files but RUN only works for the first one - why does it not work?
space-monkey

I have created two files - main.py and second.py

both have tkinter imported, the main.py ends in root.mainloop() as i think it should (root is the name of the tkinter object)

when i try to RUN the second.py, the code from main.py is executing.

How do i make RUN work for both?

Thank you.

Voters
space-monkey
Comments
hotnewtop
MrVoo

Import the other file, import second