@staticmethod
    def popup_and_get_inputs(parent, settings):
        dlg = QuitConfirmDlg(parent, settings)
        dlg.show()

        result = dlg.exec_()
        assert (QtGui.QDialog.Accepted, QtGui.QDialog.Rejected) in result
#        if result == QtGui.QDialog.Accepted:
#            btn_val = True
#        else:
#            btn_val = False

        return dlg.get_inputs()
dataset/ETHPy150Open shuge/Qt-Python-Binding-Examples/common_widgets/dialogs/custom_simple_dialog.py/QuitConfirmDlg.popup_and_get_inputs/swapped operands of `in`