docs: def close_all_pages(self):
          """Closes all tabs of the state machines editor."""
          state_machine_m_list = [tab['state_machine_m'] for tab in self.tabs.values()]
          for state_machine_m in state_machine_m_list:
              self.on_close_clicked(None, state_machine_m, None, force=True)