do i need a def main() in my package?


#1

Hello,

i have been trying to organise my big python script more cleanly as a package. There is a module for each section of my code and also a GUI module made in qt designer that has the appropriate connections to the other modules when corresponding buttons are pressed.

Im not sure if i need a def main() file which will control the execution of the script or if all i need to do when i want to run my script is load the GUI, which in turn will trigger the rest of the script.

this is important because im really trying to simplify my script down to its cleanest form.

thanks in advance,
Sam