Creating a tiny framework
So why do we need another framework on top of Tkinter? If we need to build just a single program, we need not build a framework. However, if we find ourselves writing the same boilerplate code over and over again, a framework is what we need. That is, a framework is a tool that lets us easily generate generic and often-used patterns with ease.
Consider, for example, the menu used in programs. It is such a common element in most programs. Yet we need to handcraft each menu item every time we sit down to write a program. What if we could further abstract to simplify menu generation? This is where frameworks come in handy.
Say you have a program that has 10 different top-level menus. Say each of the top-level menus has five menu items. We will have to then write 50 lines of code simply to display these 50 menu items. You have to link each of them manually to other commands besides having to set tons of options for each of them.
If we keep doing this for all our widgets...