|
|
#46 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,909
Karma: 207182180
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Ok. Then I guess it's possible that the subclassed QApplication might be necessary to pull this off after all.
If only for my own satisfaction, I may try to come up with a minimally subclassed QApplication that can be easily pasted into a plugin's code for this edge case where only a FileOpen dialog is desired. |
|
|
|
|
|
#47 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,909
Karma: 207182180
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I just figured it out. I'm not entirely sure my trick is doing anything at this point. It may have at one point... but who knows.
The trick is to not use native file dialogs. Code:
options = QFileDialog.Options()
options |= QFileDialog.DontUseNativeDialog
fpath, _ = QFileDialog.getOpenFileName(
w,
"Select LanguageTool Java file",
"",
"languagetool-commandline.jar (*.jar)",
options=options
)
Hope something there helps. |
|
|
|
| Advert | |
|
|
|
|
#48 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,763
Karma: 24088559
Join Date: Dec 2010
Device: Kindle PW2
|
|
|
|
|
|
|
#49 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,909
Karma: 207182180
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Great! Happy to help.
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Feat. Req. Discussion: Adding Markdown Support to KOReader | spectas | KOReader | 1 | 10-27-2024 08:03 PM |
| [Metadata Source plugins] Calibre internal plugins fail | igorius | Plugins | 1 | 05-28-2023 12:42 PM |
| [Discussion] Update plugins from GitHub release page | xxyzz | Plugins | 6 | 11-23-2020 05:54 AM |
| Systemwide installation of plugins / Discovery of installed plugins via pkg_resources | t-8ch | Development | 8 | 11-14-2020 10:25 AM |
| No Module name Tkinter on plugin import | foghat | Plugins | 1 | 11-11-2010 08:11 PM |