eric6/QScintilla/DocstringGenerator/BaseDocstringGenerator.py

changeset 8143
2c730d5fd177
parent 8000
47b15df088e4
child 8207
d359172d11be
--- a/eric6/QScintilla/DocstringGenerator/BaseDocstringGenerator.py	Mon Mar 01 17:48:43 2021 +0100
+++ b/eric6/QScintilla/DocstringGenerator/BaseDocstringGenerator.py	Tue Mar 02 17:17:09 2021 +0100
@@ -225,7 +225,7 @@
         @type QKeyEvent
         """
         key = evt.key()
-        if key not in (Qt.Key_Enter, Qt.Key_Return):
+        if key not in (Qt.Key.Key_Enter, Qt.Key.Key_Return):
             self.__editor.keyPressEvent(evt)
             self.close()
         else:

eric ide

mercurial