Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Sigil > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 10-12-2017, 08:31 PM   #1
slowsmile
Witchman
slowsmile is a glorious beacon of lightslowsmile is a glorious beacon of lightslowsmile is a glorious beacon of lightslowsmile is a glorious beacon of lightslowsmile is a glorious beacon of lightslowsmile is a glorious beacon of lightslowsmile is a glorious beacon of lightslowsmile is a glorious beacon of lightslowsmile is a glorious beacon of lightslowsmile is a glorious beacon of lightslowsmile is a glorious beacon of light
 
Posts: 209
Karma: 12036
Join Date: May 2013
Location: Philippines
Device: Android S5
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?

Last edited by slowsmile; 10-12-2017 at 08:42 PM.
slowsmile is offline   Reply With Quote
Advert
Old 10-12-2017, 08:44 PM   #2
KevinH
Wizard
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 2,545
Karma: 772404
Join Date: Nov 2009
Device: many
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.

Last edited by KevinH; 10-12-2017 at 09:29 PM.
KevinH is offline   Reply With Quote
Old 10-12-2017, 08:56 PM   #3
slowsmile
Witchman
slowsmile is a glorious beacon of lightslowsmile is a glorious beacon of lightslowsmile is a glorious beacon of lightslowsmile is a glorious beacon of lightslowsmile is a glorious beacon of lightslowsmile is a glorious beacon of lightslowsmile is a glorious beacon of lightslowsmile is a glorious beacon of lightslowsmile is a glorious beacon of lightslowsmile is a glorious beacon of lightslowsmile is a glorious beacon of light
 
Posts: 209
Karma: 12036
Join Date: May 2013
Location: Philippines
Device: Android S5
duplicate

Last edited by slowsmile; 10-12-2017 at 09:06 PM.
slowsmile is offline   Reply With Quote
Old 10-12-2017, 09:02 PM   #4
slowsmile
Witchman
slowsmile is a glorious beacon of lightslowsmile is a glorious beacon of lightslowsmile is a glorious beacon of lightslowsmile is a glorious beacon of lightslowsmile is a glorious beacon of lightslowsmile is a glorious beacon of lightslowsmile is a glorious beacon of lightslowsmile is a glorious beacon of lightslowsmile is a glorious beacon of lightslowsmile is a glorious beacon of lightslowsmile is a glorious beacon of light
 
Posts: 209
Karma: 12036
Join Date: May 2013
Location: Philippines
Device: Android S5
duplicate

Last edited by slowsmile; 10-12-2017 at 09:07 PM.
slowsmile is offline   Reply With Quote
Old 10-12-2017, 09:09 PM   #5
slowsmile
Witchman
slowsmile is a glorious beacon of lightslowsmile is a glorious beacon of lightslowsmile is a glorious beacon of lightslowsmile is a glorious beacon of lightslowsmile is a glorious beacon of lightslowsmile is a glorious beacon of lightslowsmile is a glorious beacon of lightslowsmile is a glorious beacon of lightslowsmile is a glorious beacon of lightslowsmile is a glorious beacon of lightslowsmile is a glorious beacon of light
 
Posts: 209
Karma: 12036
Join Date: May 2013
Location: Philippines
Device: Android S5
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?
slowsmile is offline   Reply With Quote
Old 10-12-2017, 09:31 PM   #6
KevinH
Wizard
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 2,545
Karma: 772404
Join Date: Nov 2009
Device: many
Both tkinter and pyqt are supported and should continue to be for the forseeable future.
KevinH is offline   Reply With Quote
Old 10-12-2017, 09:35 PM   #7
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 17,025
Karma: 89654632
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
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.
DiapDealer is offline   Reply With Quote
Old 10-13-2017, 01:01 AM   #8
slowsmile
Witchman
slowsmile is a glorious beacon of lightslowsmile is a glorious beacon of lightslowsmile is a glorious beacon of lightslowsmile is a glorious beacon of lightslowsmile is a glorious beacon of lightslowsmile is a glorious beacon of lightslowsmile is a glorious beacon of lightslowsmile is a glorious beacon of lightslowsmile is a glorious beacon of lightslowsmile is a glorious beacon of lightslowsmile is a glorious beacon of light
 
Posts: 209
Karma: 12036
Join Date: May 2013
Location: Philippines
Device: Android S5
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.
slowsmile is offline   Reply With Quote
Old 10-13-2017, 02:52 AM   #9
Doitsu
Wizard
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 3,888
Karma: 10764058
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by slowsmile View Post
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.
Ideally, plugin preferences should be updated via a GUI, unless they're advanced settings that rarely need to be changed.

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:
  1. Presss WIN+R.
  2. Copy and paste %LOCALAPPDATA%\sigil-ebook\sigil\plugins_prefs\OpenDocHTMLImport and hit Return.
This'll display the preferences folder for your OpenDocHTMLImport plugin.
Doitsu is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Prefs Error MrKonan Calibre 2 10-07-2017 02:39 AM
Sync Calibre Prefs between Win 10 and macOS Sierra saluli Library Management 0 06-05-2017 08:33 PM
Can I access the database from a metadata source plugin? Jellby Development 7 02-03-2015 03:29 AM
PW2 Change Search Prefs stevejoung Kindle Developer's Corner 12 10-10-2014 07:30 AM
Where are toolbar prefs saved? copyrite Calibre 2 05-01-2014 12:44 PM


All times are GMT -4. The time now is 02:14 AM.


MobileRead.com is a privately owned, operated and funded community.