'Return the widget to give focus to when
this plugin\'s dockwidget is raised on top-level'

def get_focus_widget(self):

    client = self.tabwidget.currentWidget()
    if (client is not None):
        return client.get_control()
