code: def get_widget(self, index=None, path=None, tabs=None):
          
          if (index and tabs) or (path and tabs):
              return tabs.widget(index)
          elif self.plugin:
              return self.get_plugin_tabwidget(self.plugin).currentWidget()
          else:
              return self.plugins_tabs[0][0].currentWidget()
docs: Get widget by index.
  
          If no tabs and index specified the current active widget is returned.