View Single Post
Old 03-09-2014, 01:06 PM   #3
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,550
Karma: 19500001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
It's just the text for the "about" or "help" dialog (inside the plugin). I simply define a variable with the HTML code:

Code:
help_txt = _('''
<h3 style="text-align:center">The Prince PDF Plugin</h3>
<p style="text-align:center"><i>Created by Jellby</i></p>
...
<p style="margin:1em 0 0 0"><i><img src=":images/prince_icon.png"/> Prince is copyrighted &copy; YesLogic Pty. Ltd.</i></p>
<p style="margin:0"><img src=":images/small_icon.png"/> This plugin is released under GPL v3.</p>
''')
and then show it with.

Code:
QMessageBox.about(self, _('About the Prince PDF Plugin'), help_txt)
How can I portably extract files to a temp dir inside the calibre framework?
Jellby is offline   Reply With Quote