Oct-24-2025, 08:47 AM
Hello,
I am just about to write a large tkinter GUI program and I would like to ask a bit of advice on layout organisation before I start. I would like to start with a good design mythology that is upgradeable and enables easier debugging and also isn't memory hungry.
The GUI interface will include about 25 buttons, 50 dialog boxes, 10 progress bars and a field for saving the data to a file. So keeping things simple i will base it on a car, and list all the py files below:
* main.py - this will include all, botton clicks, dialog boxes, basic operations and external function file function calls.
* engine.py - includes functions to sends and receives data to the engine.
* gearbox.py - includes functions to sends and receives data to the gearbox.
* cabin.py - includes functions to sends and receives data to the cabin.
* savedata.py - saves data to an external file
Essentially I don't want main.py to end up being 10 A4 pages long and a complete mess and a nightmare to debug. Would you recommend putting more of the main.py function into external files?
Look forward to your reply and any feedback.
Tuurbo46
I am just about to write a large tkinter GUI program and I would like to ask a bit of advice on layout organisation before I start. I would like to start with a good design mythology that is upgradeable and enables easier debugging and also isn't memory hungry.
The GUI interface will include about 25 buttons, 50 dialog boxes, 10 progress bars and a field for saving the data to a file. So keeping things simple i will base it on a car, and list all the py files below:
* main.py - this will include all, botton clicks, dialog boxes, basic operations and external function file function calls.
* engine.py - includes functions to sends and receives data to the engine.
* gearbox.py - includes functions to sends and receives data to the gearbox.
* cabin.py - includes functions to sends and receives data to the cabin.
* savedata.py - saves data to an external file
Essentially I don't want main.py to end up being 10 A4 pages long and a complete mess and a nightmare to debug. Would you recommend putting more of the main.py function into external files?
Look forward to your reply and any feedback.
Tuurbo46
