code: def move_tab_from_another_tabwidget(self, tabwidget_from,
                                          index_from, index_to):
          
              
          # We pass self object IDs as QString objs, because otherwise it would 
          # depend on the platform: long for 64bit, int for 32bit. Replacing 
          # by long all the time is not working on some 32bit platforms 
          # (see Issue 1094, Issue 1098)
          self.sig_move_tab.emit(tabwidget_from, to_text_string(id(self)),
                                 index_from, index_to)
docs: Move tab from a tabwidget to another