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. |