code: def mouseReleaseEvent(self, event):
          
          self.accept()
          super(XSnapshotWidget, self).mouseReleaseEvent(event)
docs: Finishes the selection event.
          
          :param      event | <QMouseReleaseEvent>