code: def add_segy_view_widget(self, ind, widget, name=None):
          
  
          if self._context is None:
              self._segywidgets.append(widget)
              self.initialize()
              return 0 # return 0 for first widget index
  
          self._tab_widget.updatesEnabled = False
          widget.show_toolbar(toolbar=True, layout_combo=False, colormap=True, save=True, settings=True)
          self._modify_qtree(widget.settings_window.qtree, [0, 1, 2, 4])
  
          if name is None:
              name = os.path.basename(widget.slice_data_source.source_filename)
  
          id = self._tab_widget.insertTab(ind, widget, name)
  
          widget.context.data_changed.connect(self._local_data_changed)
          self._tab_widget.updatesEnabled = True
  
          return id
docs: :param widget: The SegyViewWidget that will be added to the SegyTabWidget
          :type widget: SegyViewWidget