Plugin Development
I have started this thread to help answer any plugin developer's questions, and to provide links to some common code examples to help speed development of Sigil plugins.
Attached below are the following:
libgui.zip Deprecated - using PySide6 for gui elements is recommended
a python module compatible with both python 2.7 and 3.4 that hides the details
of using Tk for generating simple modal dialogs such as fileChooser(), folderChooser(),
fileSaveAs(), and selectFromList(). Also included are routines to convert ebook titles
to safe file names, and to get the path to the User's home directory.
The main routine illustrates simple examples on how to use these routines in your plugin.
sampleOutput.zip
a sample epub output plugin that supports font obfuscation and removes the Sigil specific metadata. It requires Sigil-0.9.3 to work due to bugs in earlier launcher code.
sampleOutput_v020.zip
An updated version of the original sampleOutput.zip plugin that has been updated to work with Sigil 2.0.0 or later and uses PySide6 graphics
testme3_v031.zip
a sample edit plugin that provides many simple examples of how to use the plugin interface
Last edited by KevinH; 05-28-2025 at 06:22 PM.
|