eric6/VirtualEnv/VirtualenvAddEditDialog.py

changeset 8143
2c730d5fd177
parent 7923
91e843545d9a
child 8176
31965986ecd1
child 8218
7c09585bd960
--- a/eric6/VirtualEnv/VirtualenvAddEditDialog.py	Mon Mar 01 17:48:43 2021 +0100
+++ b/eric6/VirtualEnv/VirtualenvAddEditDialog.py	Tue Mar 02 17:17:09 2021 +0100
@@ -101,7 +101,7 @@
         
         self.__updateOk()
         
-        self.nameEdit.setFocus(Qt.OtherFocusReason)
+        self.nameEdit.setFocus(Qt.FocusReason.OtherFocusReason)
     
     def __updateOk(self):
         """
@@ -136,7 +136,8 @@
             )
         )
         
-        self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(enable)
+        self.buttonBox.button(
+            QDialogButtonBox.StandardButton.Ok).setEnabled(enable)
     
     @pyqtSlot(str)
     def on_nameEdit_textChanged(self, txt):

eric ide

mercurial