code: def toggle_wrap_mode(self, checked):
          
          if self.tabwidget is None:
              return
          for editor in self.editors:
              editor.toggle_wrap_mode(checked)
          self.set_option('wrap', checked)
docs: Toggle wrap mode