The Single Responsibility Principle suggests that a function/class/method should do only one thing and that it should do it all and do it well. This means that we should not try to handle multiple things from within a function.
The Single Responsibility Principle
Get Tkinter GUI Application Development Blueprints - Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.