eric6/PipInterface/PipPackagesInputDialog.py

changeset 8143
2c730d5fd177
parent 7923
91e843545d9a
child 8218
7c09585bd960
diff -r 27f636beebad -r 2c730d5fd177 eric6/PipInterface/PipPackagesInputDialog.py
--- a/eric6/PipInterface/PipPackagesInputDialog.py	Mon Mar 01 17:48:43 2021 +0100
+++ b/eric6/PipInterface/PipPackagesInputDialog.py	Tue Mar 02 17:17:09 2021 +0100
@@ -35,7 +35,8 @@
         
         self.setWindowTitle(title)
         
-        self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(False)
+        self.buttonBox.button(
+            QDialogButtonBox.StandardButton.Ok).setEnabled(False)
         
         self.userCheckBox.setVisible(install)
         
@@ -50,7 +51,8 @@
         @param txt name of the requirements file
         @type str
         """
-        self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(bool(txt))
+        self.buttonBox.button(
+            QDialogButtonBox.StandardButton.Ok).setEnabled(bool(txt))
     
     def getData(self):
         """

eric ide

mercurial