eric6/PipInterface/PipFreezeDialog.py

changeset 8143
2c730d5fd177
parent 7923
91e843545d9a
child 8176
31965986ecd1
child 8218
7c09585bd960
equal deleted inserted replaced
8141:27f636beebad 8143:2c730d5fd177
37 @param parent reference to the parent widget 37 @param parent reference to the parent widget
38 @type QWidget 38 @type QWidget
39 """ 39 """
40 super(PipFreezeDialog, self).__init__(parent) 40 super(PipFreezeDialog, self).__init__(parent)
41 self.setupUi(self) 41 self.setupUi(self)
42 self.setWindowFlags(Qt.Window) 42 self.setWindowFlags(Qt.WindowType.Window)
43 43
44 self.__refreshButton = self.buttonBox.addButton( 44 self.__refreshButton = self.buttonBox.addButton(
45 self.tr("&Refresh"), QDialogButtonBox.ActionRole) 45 self.tr("&Refresh"), QDialogButtonBox.ButtonRole.ActionRole)
46 46
47 self.__environmentName = "" 47 self.__environmentName = ""
48 48
49 self.requirementsFilePicker.setMode(E5PathPickerModes.SaveFileMode) 49 self.requirementsFilePicker.setMode(E5PathPickerModes.SaveFileMode)
50 self.requirementsFilePicker.setFilters( 50 self.requirementsFilePicker.setFilters(
99 Private slot called by a button of the button box clicked. 99 Private slot called by a button of the button box clicked.
100 100
101 @param button button that was clicked 101 @param button button that was clicked
102 @type QAbstractButton 102 @type QAbstractButton
103 """ 103 """
104 if button == self.buttonBox.button(QDialogButtonBox.Close): 104 if button == self.buttonBox.button(
105 QDialogButtonBox.StandardButton.Close
106 ):
105 self.close() 107 self.close()
106 elif button == self.__refreshButton: 108 elif button == self.__refreshButton:
107 self.__refresh() 109 self.__refresh()
108 110
109 def __refresh(self): 111 def __refresh(self):

eric ide

mercurial