--- a/eric6/HexEdit/HexEditGotoWidget.py Mon Mar 01 17:48:43 2021 +0100 +++ b/eric6/HexEdit/HexEditGotoWidget.py Tue Mar 02 17:17:09 2021 +0100 @@ -59,7 +59,7 @@ """ Private slot to close the widget. """ - self.__editor.setFocus(Qt.OtherFocusReason) + self.__editor.setFocus(Qt.FocusReason.OtherFocusReason) self.close() @pyqtSlot(int) @@ -139,7 +139,7 @@ @param event reference to the key press event @type QKeyEvent """ - if event.key() == Qt.Key_Escape: + if event.key() == Qt.Key.Key_Escape: self.close() def __convertText(self, txt, oldFormat, newFormat):