Dec-30-2018, 02:29 PM
Python style is generally to do all imports at the top of the file. If you do that they are accessible anywhere in the file. I only violate that in two cases: dynamic imports (where you don't know ahead of time what is going to be imported), and if __main__ blocks that need something that isn't needed when the file is imported.
You can import the functions into the file with the GUI, or you can import them both into a third file. The main problem would be if you created an cycle in your imports (foo.py imports bar, when bar.py is trying to import foo).
You can import the functions into the file with the GUI, or you can import them both into a third file. The main problem would be if you created an cycle in your imports (foo.py imports bar, when bar.py is trying to import foo).
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures