'Toggle show source code'

@Slot(bool)
def toggle_show_source(self, checked):

    if checked:
        self.switch_to_plain_text()
    self.docstring = (not checked)
    self.force_refresh()
    self.set_option('rich_mode', (not checked))
