Hello everyone,
I was wondering, if I wanted to make my code a little smaller in one file,
is it possible for me to import another file I made?
E.G.
(Very simple e.g. just for helping understand what I mean)
Let's say I made a program that the user types in a number in an Entry (tkinter)
and presses a button that prints our what they typed in.
Could I write the Entry in one file (entry.py) and the button in another file (button.py)
and import the second file (button.py) into the first file (entry.py) and use the button?
And if so, how would I go about doing this?
Thanks in advance,
-WolfShield