code: def toggle_line_numbers(self, checked):
          
          if self.tabwidget is None:
              return
          for editor in self.editors:
              editor.toggle_line_numbers(linenumbers=checked, markers=False)
          self.set_option('line_numbers', checked)
docs: Toggle line numbers.