Ignore:
Timestamp:
Nov 9, 2017 6:45:20 AM (6 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
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 07:22:45)
git-committer:
Piotr Rozyczko <rozyczko@…> (11/09/17 06:45:20)
Message:

Converted unit tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/MainWindow/DataExplorer.py

    rd6b8a1d r53c771e  
    287287        delete_msg = "This operation will delete the checked data sets and all the dependents." +\ 
    288288                     "\nDo you want to continue?" 
    289         reply = QtGui.QMessageBox.question(self, 
     289        reply = QtWidgets.QMessageBox.question(self, 
    290290                                           'Warning', 
    291291                                           delete_msg, 
    292                                            QtGui.QMessageBox.Yes, 
    293                                            QtGui.QMessageBox.No) 
    294  
    295         if reply == QtGui.QMessageBox.No: 
     292                                           QtWidgets.QMessageBox.Yes, 
     293                                           QtWidgets.QMessageBox.No) 
     294 
     295        if reply == QtWidgets.QMessageBox.No: 
    296296            return 
    297297 
     
    327327        delete_msg = "This operation will delete the checked data sets and all the dependents." +\ 
    328328                     "\nDo you want to continue?" 
    329         reply = QtGui.QMessageBox.question(self, 
     329        reply = QtWidgets.QMessageBox.question(self, 
    330330                                           'Warning', 
    331331                                           delete_msg, 
    332                                            QtGui.QMessageBox.Yes, 
    333                                            QtGui.QMessageBox.No) 
    334  
    335         if reply == QtGui.QMessageBox.No: 
     332                                           QtWidgets.QMessageBox.Yes, 
     333                                           QtWidgets.QMessageBox.No) 
     334 
     335        if reply == QtWidgets.QMessageBox.No: 
    336336            return 
    337337 
     
    373373        if len(selected_items) > 1 and not self._perspective().allowBatch(): 
    374374            msg = self._perspective().title() + " does not allow multiple data." 
    375             msgbox = QtGui.QMessageBox() 
    376             msgbox.setIcon(QtGui.QMessageBox.Critical) 
     375            msgbox = QtWidgets.QMessageBox() 
     376            msgbox.setIcon(QtWidgets.QMessageBox.Critical) 
    377377            msgbox.setText(msg) 
    378             msgbox.setStandardButtons(QtGui.QMessageBox.Ok) 
     378            msgbox.setStandardButtons(QtWidgets.QMessageBox.Ok) 
    379379            retval = msgbox.exec_() 
    380380            return 
Note: See TracChangeset for help on using the changeset viewer.