Quote:
Originally Posted by carmenchu
Unfortunately, as it MUST be a comma-separated list, without spaces, the code is quite clumsy. A less unwieldy alternative would be appreciated.
|
Actually, you can save Python lists in the preference file.
Quote:
Originally Posted by carmenchu
Query: are buttons of the message easy to understand, o rather counter-intuitive?
|
I'd simply use Yes and No to avoid confusion.
Code:
msg.setStandardButtons(QMessageBox.Yes | QMessageBox.No)
testmode = [0,1][msg.exec_()== QMessageBox.Yes]