View Single Post
Old 04-11-2020, 02:33 PM   #19
carmenchu
Groupie
carmenchu ought to be getting tired of karma fortunes by now.carmenchu ought to be getting tired of karma fortunes by now.carmenchu ought to be getting tired of karma fortunes by now.carmenchu ought to be getting tired of karma fortunes by now.carmenchu ought to be getting tired of karma fortunes by now.carmenchu ought to be getting tired of karma fortunes by now.carmenchu ought to be getting tired of karma fortunes by now.carmenchu ought to be getting tired of karma fortunes by now.carmenchu ought to be getting tired of karma fortunes by now.carmenchu ought to be getting tired of karma fortunes by now.carmenchu ought to be getting tired of karma fortunes by now.
 
Posts: 193
Karma: 266070
Join Date: Dec 2010
Location: Spain
Device: Win10,Win11,Ubuntu,PockbookLux44
Quote:
I'd simply use Yes and No to avoid confusion.

Code:
    msg.setStandardButtons(QMessageBox.Yes | QMessageBox.No)
    testmode = [0,1][msg.exec_()== QMessageBox.Yes]
A ton of thanks: works fine.
And, BTW, is there an equally simple way to substite the default icon of the message box (quite horrid, at least in my win10) with the plug-in icon, for instance?
If yes, I would wait to update the upload...
*Query*: uploading a new file with the name, would result in updating the previous attachment, or must one attach again? My ignorance

Quote:
Originally Posted by Doitsu View Post
Actually, you can save Python lists in the preference file.
Good to know: but think of the irritation of having to manually add 3 more tags to 'a','br','b',...
carmenchu is offline   Reply With Quote