webview.start gui kwarg seems mostly redundant #772
Replies: 4 comments
-
Do you mean forced_gui kwarg? If so, its purpose is to force a specific renderer trumping over the default renderer choice. If the forced renderer is not available it defaults to what is available. |
Beta Was this translation helpful? Give feedback.
-
Starting with an example
Unless I've missed something, It looks like its really not doing much of anything, except putting |
Beta Was this translation helpful? Give feedback.
-
Yes you are right that is used only for forcing QT. However if you look at winforms.py the same parameter is used for choosing a renderer, even though WinForms is used in any case. |
Beta Was this translation helpful? Give feedback.
-
Ah ok, I see what's going on. |
Beta Was this translation helpful? Give feedback.
-
Looking at the code in guilib.py, it seems that the
gui
kwarg is almost entirely supefluous with the exception of prioritising gtk/qtThe check on line 72 shows a large list of what values are acceptable.
But the per-platform checks below only honor qt/gtk on some platforms.
Is there something I'm not grokking?
Beta Was this translation helpful? Give feedback.
All reactions