reference to our main gui tkinter window framemighty is the variable that holds reference to our labelframe and is child of the main window frame (win)and label and all other widgets are now placed into the labelframe container (mightynextwe will modify the following controls to use mighty as the parentreplacing win here is an example of how to do this fig output of above code creating menu bars we will add menu bar to our main windowadd menus to the menu barand then add menu items to the menus we are creating menuitem for functionalities like fileexit and help