View Single Post
Old 09-11-2019, 10:35 AM   #7
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,418
Karma: 27757236
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
@jackie_w: You should be able to use qwebengine in your plugin by running it in a separate process using calibre-debug so your previewer becomes a simple standalone program inside your plugin. Something like


Code:
from calibre.debug import run_calibre-debug
run_calibre_debug(['-c', 'from calibre_plugins.your_plugin.viewer import main; import sys; main(sys.argv[-2], sys.argv[-1]);', 'path to first html file', 'path to second html file'])
And then implement your viewer using qwebengine.

Last edited by kovidgoyal; 09-11-2019 at 11:42 AM.
kovidgoyal is offline   Reply With Quote