View Single Post
Old 12-24-2013, 03:51 AM   #13
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,561
Karma: 20150435
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by kovidgoyal View Post
from calibre.constants import DEBUG
if DEBUG:
print (whatever)
Great! Is there something that will work with 'calibre -v' too? What about some GUI feedback?

Quote:
See the documentation for QDialogButtonBox, you can add as many types of buttons as you like.
But I didn't define the QDialogButtonBox for the config dialog. As far as I can see that is defined in calibre/customize/__init__.py:

Code:
button_box = QDialogButtonBox(QDialogButtonBox.Ok | QDialogButtonBox.Cancel)
Can I access from my plugin the QDialogButtonBox that is defined in the standard do_user_config procedure?

Last edited by Jellby; 12-24-2013 at 04:03 AM.
Jellby is offline   Reply With Quote