def keyPressEvent(self, event):
        """ keyPressEvent(event: QEvent) -> None
        Enter and Return keys signal a change in the label.  Other keys
        update the position and size of the parent ellipse during key entry.

        """
        if event.key() in [QtCore.Qt.Key_Enter, QtCore.Qt.Key_Return]:
            self.updatingTag = True
            if (self.label == str(self.toPlainText()) or
                not self.scene().controller.update_current_tag(str(self.toPlainText()))):
                self.reset()
            self.updatingTag = False
            event.ignore()
            self.clearFocus()
            return
        qt_super(QGraphicsVersionTextItem, self).keyPressEvent(event)
        if (0 > len(str(self.toPlainText()))):
            self.setTextWidth(-1)
        self.updatePos()
        self.parentItem().updateWidthFromLabel()
dataset/ETHPy150Open VisTrails/VisTrails/vistrails/gui/version_view.py/QGraphicsVersionTextItem.keyPressEvent/swapped operands of `>`