Changeset 53c771e in sasview for src/sas/qtgui/MainWindow/DataExplorer.py
- Timestamp:
- Nov 9, 2017 8:45:20 AM (7 years ago)
- Branches:
- ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
- Children:
- dd150ef
- Parents:
- d6b8a1d
- git-author:
- Piotr Rozyczko <rozyczko@…> (11/08/17 09:22:45)
- git-committer:
- Piotr Rozyczko <rozyczko@…> (11/09/17 08:45:20)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/MainWindow/DataExplorer.py
rd6b8a1d r53c771e 287 287 delete_msg = "This operation will delete the checked data sets and all the dependents." +\ 288 288 "\nDo you want to continue?" 289 reply = Qt Gui.QMessageBox.question(self,289 reply = QtWidgets.QMessageBox.question(self, 290 290 'Warning', 291 291 delete_msg, 292 Qt Gui.QMessageBox.Yes,293 Qt Gui.QMessageBox.No)294 295 if reply == Qt Gui.QMessageBox.No:292 QtWidgets.QMessageBox.Yes, 293 QtWidgets.QMessageBox.No) 294 295 if reply == QtWidgets.QMessageBox.No: 296 296 return 297 297 … … 327 327 delete_msg = "This operation will delete the checked data sets and all the dependents." +\ 328 328 "\nDo you want to continue?" 329 reply = Qt Gui.QMessageBox.question(self,329 reply = QtWidgets.QMessageBox.question(self, 330 330 'Warning', 331 331 delete_msg, 332 Qt Gui.QMessageBox.Yes,333 Qt Gui.QMessageBox.No)334 335 if reply == Qt Gui.QMessageBox.No:332 QtWidgets.QMessageBox.Yes, 333 QtWidgets.QMessageBox.No) 334 335 if reply == QtWidgets.QMessageBox.No: 336 336 return 337 337 … … 373 373 if len(selected_items) > 1 and not self._perspective().allowBatch(): 374 374 msg = self._perspective().title() + " does not allow multiple data." 375 msgbox = Qt Gui.QMessageBox()376 msgbox.setIcon(Qt Gui.QMessageBox.Critical)375 msgbox = QtWidgets.QMessageBox() 376 msgbox.setIcon(QtWidgets.QMessageBox.Critical) 377 377 msgbox.setText(msg) 378 msgbox.setStandardButtons(Qt Gui.QMessageBox.Ok)378 msgbox.setStandardButtons(QtWidgets.QMessageBox.Ok) 379 379 retval = msgbox.exec_() 380 380 return
Note: See TracChangeset
for help on using the changeset viewer.