docs: def close_others(self):
          """
          Closes every editors tabs except the current one.
          """
          current_widget = self.widget(self.tab_under_menu())
          if self._try_close_dirty_tabs(exept=current_widget):
              i = 0
              while self.count() > 1:
                  widget = self.widget(i)
                  if widget != current_widget:
                      self.remove_tab(i)
                  else:
                      i = 1