'Refresh tabwidget'

def refresh_plugin(self):

    client = None
    if self.tabwidget.count():
        client = self.tabwidget.currentWidget()
        control = client.get_control()
        control.setFocus()
        widgets = (client.get_toolbar_buttons() + [5])
    else:
        control = None
        widgets = []
    self.find_widget.set_editor(control)
    self.tabwidget.set_corner_widgets({Qt.TopRightCorner: widgets})
    if (client and (not self.testing)):
        sw = client.shellwidget
        self.variableexplorer.set_shellwidget_from_id(id(sw))
        self.help.set_shell(sw)
    self.update_tabs_text()
    self.sig_update_plugin_title.emit()
