code: def moveEvent(self, event):
          
          if not self.isMaximized() and not self.fullscreen_flag:
              self.window_position = self.pos()
          QMainWindow.moveEvent(self, event)
  
          # To be used by the tour to be able to move
          self.sig_moved.emit(event)
docs: Reimplement Qt method