Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old Yesterday, 02:05 AM   #31
BeckyEbook
Guru
BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.
 
BeckyEbook's Avatar
 
Posts: 987
Karma: 3600000
Join Date: Jan 2017
Location: Poland
Device: Various
OK. I'll look into it.
BeckyEbook is offline   Reply With Quote
Old Yesterday, 08:07 AM   #32
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: 29,472
Karma: 212177022
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Interestingly enough, it seems to be only the setting of SIGIL_PREVIEW_TIMEOUT that prevents the Save button from working correctly. I tried the other variables that took user input and they worked fine for me.
DiapDealer is online now   Reply With Quote
Advert
Old Yesterday, 11:01 AM   #33
KevinH
Sigil Developer
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: 9,680
Karma: 6774048
Join Date: Nov 2009
Device: many
In case this helps, I changed your use of "try:" to catch a ValueError to instead catch all Exceptions and print out the exceptions error message and I get the following errors when trying to change the Preview Timeout and then save:

Code:
Traceback (most recent call last):
  File "/Users/kbhend/Library/Application Support/sigil-ebook/sigil/plugins/EnvVarEditor/plugin.py", line 849, in on_accept
    values = self.get_values()
  File "/Users/kbhend/Library/Application Support/sigil-ebook/sigil/plugins/EnvVarEditor/plugin.py", line 790, in get_values
    if w.value() != default_val:
                    ^^^^^^^^^^^
NameError: name 'default_val' is not defined
Hope this helps.
KevinH is offline   Reply With Quote
Old Yesterday, 11:08 AM   #34
BeckyEbook
Guru
BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.
 
BeckyEbook's Avatar
 
Posts: 987
Karma: 3600000
Join Date: Jan 2017
Location: Poland
Device: Various
Sure. Thanks!
I'll test it and prepare a fix.
BeckyEbook is offline   Reply With Quote
Old Yesterday, 11:13 AM   #35
KevinH
Sigil Developer
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: 9,680
Karma: 6774048
Join Date: Nov 2009
Device: many
Yes, if I comment that line out, then it all works. But that makes it an exact dupilcate of the next elif. I think only the first int handling elif will ever be used not the next.
KevinH is offline   Reply With Quote
Advert
Old Yesterday, 08:58 PM   #36
BeckyEbook
Guru
BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.
 
BeckyEbook's Avatar
 
Posts: 987
Karma: 3600000
Join Date: Jan 2017
Location: Poland
Device: Various
It was indeed unnecessary to have two versions of elif (the old and the new). Thanks.
I've prepared a revised beta version; it's in the second post.
BeckyEbook is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sigil Qt6 and GUI plugin development changes DiapDealer Plugins 26 11-16-2023 11:12 AM
[Plugin] SelfCSS for Sigil WYSIWYG CSS editor byword Plugins 5 08-30-2023 09:44 AM
QT scaling - Ways to change Environment Variables in Windows Comfy.n Calibre 4 08-11-2022 11:20 PM
[GUI Plugin] Save Virtual Libraries To Column (GUI) chaley Plugins 14 04-04-2021 05:25 AM
[Editor Plugin] - Enabling 'Customize plugin' dialog directly from the Editor thiago.eec Development 7 01-09-2019 08:05 PM


All times are GMT -4. The time now is 07:03 PM.


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