![]() |
#91 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
@Kovid: I run from source. For testing and other reasons I now frequently switch between the Qt5 and Qt6 calibre versions. Invariably when I switch, some _ui.py files are out of sync because the form compile process depends on dates. Would you consider adding a way via env var or option to force build_forms.py / build_forms / force_compile to True? Thanks.
|
![]() |
![]() |
![]() |
#92 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
|
|
![]() |
![]() |
![]() |
#93 | |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,364
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Quote:
|
|
![]() |
![]() |
![]() |
#94 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
|
|
![]() |
![]() |
![]() |
#95 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
The issue arises because I use Atlassan Sourcetree as my git manager. It lets me create, delete, and switch between branches with a click or two. It also deals with monitoring source to detect changes, packaging commits, pushing changes to create pull requests, and pulling changes on demand. Its version browser is quite good. It does what I need. The way Sourcetree works is that changes (pulled changes, branch switching, etc) all happen in the same source tree. This works very well with Eclipse/Pydev, the IDE I use, because changes are instantly shown in the IDE. Of course this is what causes the problem I pointed out: non-managed files such as *_ui.py aren't touched during a switch. What I do now is search for *_ui.py files and delete them. This works but is a bother because I usually forget to do it and then calibre won't start. There is also a flag in gui.json, "migrated_forms_to_qt6" that if deleted or set to False will force recompilation of the forms, but changing this is more trouble than deleting the files. Last edited by chaley; 03-08-2022 at 11:46 AM. |
|
![]() |
![]() |
![]() |
#96 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,364
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
@chaley: You might want to consider a git hook that's what I use, see git_post_checkout_hook.py (you can obv skip the build part and just redo the forms.
|
![]() |
![]() |
![]() |
#97 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Thanks for the change, but it fails with Code:
Traceback (most recent call last): File "runpy.py", line 194, in _run_module_as_main File "runpy.py", line 87, in _run_code File "site.py", line 82, in <module> File "site.py", line 77, in main File "site.py", line 49, in run_entry_point File "C:\CBH_Data\calibre.git\calibre_dev\src\calibre\debug.py", line 264, in main calibre(['calibre'] + args[1:]) File "C:\CBH_Data\calibre.git\calibre_dev\src\calibre\gui_launch.py", line 61, in calibre with register_with_default_programs(): File "C:\CBH_Data\calibre.git\calibre_dev\src\calibre\gui_launch.py", line 42, in register_with_default_programs from calibre.gui2 import gprefs File "C:\CBH_Data\calibre.git\calibre_dev\src\calibre\gui2\__init__.py", line 1447, in <module> build_forms(os.environ['CALIBRE_DEVELOP_FROM'], check_for_migration=True) File "C:\CBH_Data\calibre.git\calibre_dev\src\calibre\build_forms.py", line 71, in build_forms gprefs.set(f'migrated_forms_to_qt{qt_major}', True) UnboundLocalError: local variable 'gprefs' referenced before assignment |
|
![]() |
![]() |
![]() |
#98 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,364
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
@chaley: feel free to send a PR with your fix.
|
![]() |
![]() |
![]() |
#99 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
|
![]() |
![]() |
![]() |
#100 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,216
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
|
Hi, @Kovid.
I've just finished redesigning one of my plugin's config dialog, and as part of the process I added help using QWhatsThis. It works perfectly on 5.34 but, to my surprise, I've noticed that the beta does not have the "What's this?" icon. Did you intentionally remove it? Is it a glitch? |
![]() |
![]() |
![]() |
#101 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,577
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Pretty sure the What's This? button is disabled by default in Qt6. You'll need to set the Qt::WindowContextHelpButtonHint Window flag if you want to use it with Qt6+
|
![]() |
![]() |
![]() |
#102 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,216
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
|
|
![]() |
![]() |
![]() |
#103 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,364
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Released version 5.99.3 with support for icon themeing.
As of 5.99.3 the betas have support for proper icon themeing with support for using different icon themes for light and dark mode and calibre switches between them automatically. In order to use icons from themes that support your plugin you should pass the plugin name to the get_icons() function to load an icon. For example: Code:
icon = get_icons('owp_sigil.png', 'Open With') |
![]() |
![]() |
![]() |
#104 |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,973
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
I've put up test versions of my plugins and the kiwidude ones I support that appear to work in both qt5 & qt6.
For others supporting kiwidude plugins, here's my checklist for the 5 I did:
Last edited by JimmXinu; 01-12-2022 at 04:45 PM. Reason: Forgot setTabStopWidth |
![]() |
![]() |
![]() |
#105 | |
Chalut o/
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 439
Karma: 145424
Join Date: Dec 2017
Device: Kobo
|
Quote:
Calibre version 2.0.0 instead? All Calibre 2.x use Qt5, so avoid the v2 it seems to me a little excessive (Unless there's something twisted) Last edited by un_pogaz; 01-12-2022 at 03:56 PM. |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Suggestion for PI Devs | BetterRed | Plugins | 11 | 09-27-2020 06:18 PM |
Attn plugin devs: porting to python 3 | kovidgoyal | Plugins | 129 | 06-16-2020 01:31 AM |
Attention All Plugin Devs: Remove vestiges from python 2? | KevinH | Plugins | 11 | 05-29-2020 03:16 PM |
Plugin Devs: Should we include a License or COPYING file? | KevinH | Plugins | 3 | 08-15-2017 01:09 PM |
New Plugin Features in the upcoming Sigil 0.8.900 | KevinH | Plugins | 6 | 09-14-2015 02:48 PM |