|
|||||||
![]() |
|
|
Thread Tools | Search this Thread |
|
|
#31 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,030
Karma: 3761621
Join Date: Jan 2017
Location: Poland
Device: Various
|
OK. I'll look into it.
|
|
|
|
|
|
#32 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 29,741
Karma: 212474403
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.
|
|
|
|
|
|
#33 |
|
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,019
Karma: 7518950
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
|
|
|
|
|
|
#34 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,030
Karma: 3761621
Join Date: Jan 2017
Location: Poland
Device: Various
|
Sure. Thanks!
I'll test it and prepare a fix. |
|
|
|
|
|
#35 |
|
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,019
Karma: 7518950
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.
|
|
|
|
|
|
#36 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,030
Karma: 3761621
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. |
|
|
|
|
|
#37 |
|
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 58
Karma: 17648
Join Date: Jun 2011
Location: Lima, Peru
Device: Kindle 10Gen / Kobo Aura HD / Nook STR
|
|
|
|
|
|
|
#38 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,030
Karma: 3761621
Join Date: Jan 2017
Location: Poland
Device: Various
|
Thank you for the confirmation.
The plugin hasn't received much feedback, which is why I'm still keeping it in beta. If I don't receive any bug reports for a while, I'll release a stable version. |
|
|
|
|
|
#39 |
|
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 425
Karma: 100100
Join Date: Nov 2015
Location: Europe EEC
Device: Kindle Fire HD6 & HD8
|
Following my problem with the python function replace, I used this plugin to make use of the SIGIL_FUNCTION_REPLACE_LOGFILE.
My difficulty with this plugin is that its dialog window is not resizable enough especially on the width. The result is that the Set/Unset/Not Set column is truncated in width. But the most difficulty comes in checking the full path of the logfile. This is no doubt down to the display settings on my desktop machines, Linux and Windows11. The MacBook was a little better but not perfect. See the attached screenshot (Linux). I had some initial problem getting the logfile to work and that was down to the specification of the full path. Even clicking in the file name box and using the right arrow, I can't get to the end of the filename. The only way to check was to use CtrlA to select all and then CtrlC and CtrlV in a text editor to see the full path and logfile name. Can this dialog window have its max width extended somewhat? |
|
|
|
|
|
#40 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,030
Karma: 3761621
Join Date: Jan 2017
Location: Poland
Device: Various
|
I'll look into it.
Try commenting this line in plugin.py file: Code:
scroll.setHorizontalScrollBarPolicy(Qt.ScrollBarAlwaysOn) |
|
|
|
![]() |
|
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 |