eric6/HexEdit/HexEditGotoWidget.py

changeset 8143
2c730d5fd177
parent 7923
91e843545d9a
child 8218
7c09585bd960
equal deleted inserted replaced
8141:27f636beebad 8143:2c730d5fd177
57 @pyqtSlot() 57 @pyqtSlot()
58 def on_closeButton_clicked(self): 58 def on_closeButton_clicked(self):
59 """ 59 """
60 Private slot to close the widget. 60 Private slot to close the widget.
61 """ 61 """
62 self.__editor.setFocus(Qt.OtherFocusReason) 62 self.__editor.setFocus(Qt.FocusReason.OtherFocusReason)
63 self.close() 63 self.close()
64 64
65 @pyqtSlot(int) 65 @pyqtSlot(int)
66 def on_formatCombo_currentIndexChanged(self, idx): 66 def on_formatCombo_currentIndexChanged(self, idx):
67 """ 67 """
137 Protected slot to handle key press events. 137 Protected slot to handle key press events.
138 138
139 @param event reference to the key press event 139 @param event reference to the key press event
140 @type QKeyEvent 140 @type QKeyEvent
141 """ 141 """
142 if event.key() == Qt.Key_Escape: 142 if event.key() == Qt.Key.Key_Escape:
143 self.close() 143 self.close()
144 144
145 def __convertText(self, txt, oldFormat, newFormat): 145 def __convertText(self, txt, oldFormat, newFormat):
146 """ 146 """
147 Private method to convert text from one format into another. 147 Private method to convert text from one format into another.

eric ide

mercurial