![]() |
Easier access to plugin prefs
Would it be possible to have a button in the Sigil toolbar which, when clicked, allows selection and display -- via dialog + Sigil tab -- of the selected plugin prefs .json file for editing. Apps like Sublime already have this facility for setting their own prefs.
This change would make it much easier for Sigil users to access and set plugin prefs(where applicable). Is this possible? |
The plugin code should be separate from the Sigil codebase to the extent possible. So I recommend plugin developers build a simple gui with pyqt or the built in python gui to handle editing their own prefs. We could create a canned generic module that should work the same for any plugin.
I do not think this role should be done by Sigil itself. |
duplicate
|
duplicate
|
Thanks Kevin. I'll look into writing a plugin for this when I'm up to speed on PyQT. Can it be done in Tkinter or is tk usage now discouraged for plugins?
|
Both tkinter and pyqt are supported and should continue to be for the forseeable future.
|
I've no plans to remove tkinter at this time.
Many of my plugins include gui code (both tkinter and pyqt) to allow the user to edit the plugin's preferences if you're looking for examples. |
Thanks for that, and I will have a peek at DiapDealer's pyqt examples for sure. I already have Winpython 3.4(with PyQT5 and Qt Designer) installed on my computer.
|
Quote:
BTW, users can easily access the plugin_prefs folder via: Edit > Preferences > Open Preferences Location > plugins_prefs Windows users can also access a specific preferences folder via the Windows Run dialog box. For example:
|
Quote:
|
Quote:
|
As DiapDealer says, the json file is not deleted when you update a plugin -- it is preserved in a separate plugin_prefs directory. If you want to reset plugin prefs to its default or initial settings then all you have to do is just delete the json file or delete its directory from plugin_prefs.
|
Quote:
Had to re-edit the json to change the default thumbnail size. Unless I screwed up removing the older version first. |
Quote:
Quote:
|
Quote:
|
| All times are GMT -4. The time now is 08:24 PM. |
Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.