gui.py
def updateObjectStates():
    """Updates descriptions of objects from states[] when called."""
    mwUi.txtProbSpec.setText(states[0])
    mwUi.txtProbReal.setText(states[1])
    if states[0] == "None-object":
        mwUi.txtProbSpec.setStyleSheet('background: red')
        mwUi.saveProbSpec.setEnabled(False)
    else:
        mwUi.txtProbSpec.setStyleSheet('background: green')
        mwUi.saveProbSpec.setEnabled(True)
        mwUi.btnSpecActions.setEnabled(True)
    if states[1] == "None-object":
        mwUi.txtProbReal.setStyleSheet('background: red')
        mwUi.saveProbReal.setEnabled(False)
        mwUi.btnRealActions.setEnabled(False)
    else:
        mwUi.txtProbReal.setStyleSheet('background: green')
        mwUi.saveProbReal.setEnabled(True)
        mwUi.btnRealActions.setEnabled(True)
Updates descriptions of objects from states[] when called.
Updates descriptions of objects from states[] when called.
Updates descriptions of objects from states [] when called .
def updateObjectStates():
    mwUi.txtProbSpec.setText(states[0])
    mwUi.txtProbReal.setText(states[1])
    if states[0] == "None-object":
        mwUi.txtProbSpec.setStyleSheet('background: red')
        mwUi.saveProbSpec.setEnabled(False)
    else:
        mwUi.txtProbSpec.setStyleSheet('background: green')
        mwUi.saveProbSpec.setEnabled(True)
        mwUi.btnSpecActions.setEnabled(True)
    if states[1] == "None-object":
        mwUi.txtProbReal.setStyleSheet('background: red')
        mwUi.saveProbReal.setEnabled(False)
        mwUi.btnRealActions.setEnabled(False)
    else:
        mwUi.txtProbReal.setStyleSheet('background: green')
        mwUi.saveProbReal.setEnabled(True)
        mwUi.btnRealActions.setEnabled(True)
def updateObjectStates ( ) : mwUi . txtProbSpec . setText ( states [ 0 ] ) mwUi . txtProbReal . setText ( states [ 1 ] ) if states [ 0 ] == "None-object" : mwUi . txtProbSpec . setStyleSheet ( 'background: red' ) mwUi . saveProbSpec . setEnabled ( False ) else : mwUi . txtProbSpec . setStyleSheet ( 'background: green' ) mwUi . saveProbSpec . setEnabled ( True ) mwUi . btnSpecActions . setEnabled ( True ) if states [ 1 ] == "None-object" : mwUi . txtProbReal . setStyleSheet ( 'background: red' ) mwUi . saveProbReal . setEnabled ( False ) mwUi . btnRealActions . setEnabled ( False ) else : mwUi . txtProbReal . setStyleSheet ( 'background: green' ) mwUi . saveProbReal . setEnabled ( True ) mwUi . btnRealActions . setEnabled ( True )
Updates descriptions of objects from states[] when called.
Updates descriptions of objects from states [] when called .
"""Updates descriptions of objects from states[] when called."""