Quote:
Originally Posted by kovidgoyal
@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.
|
This is hopeful but I think I need a bit more meat on the bone. Do you have a working example of this technique in action so that I can follow exactly what needs to go where?