# Displays the options of the Format ribbon format_menu.format_menu_options(text_area, text_box) # Displays the options of the View ribbon view_menu.view_menu_options(text_area) # Displays the options of the Help ribbon help_menu.help_menu_options() status_bar.display_status_bar() # Enables the Cut, Copy, Delete and Search With Google edit menu options upon text selection text_area.bind( "<<Selection>>", lambda event: edit_menu.enable_disable_methods_on_select(event, text_area)) # Lets the program know that the file has been modified and has not been saved text_area.bind("<KeyRelease>", lambda event: file_menu.file_not_saved(event, text_area)) # Updates the word and character count text_area.bind( "<KeyRelease>", lambda event: status_bar.update_word_and_character_count(event, text_area)) # Handles the quit procedure of the x ext button root.protocol("WM_DELETE_WINDOW", lambda: file_menu.exit_text_editor(root, text_area, filename)) root.mainloop()