handle_tab_changed# MainWindow.handle_tab_changed(index)# Set the views in the dock widgets appropriately.