WebView
Set the emulation level for wxWidgets WebView purely in Python.
Notes:
The highest emulation level may be used even when the corresponding browser version is not installed.
Using the
*_FORCE
options is not recommended.The
wxWEBVIEWIE_EMU_DEFAULT
can be used to reset the emulation level to the system default.
The values of the constants were taken from https://msdn.microsoft.com/library/ee330730.aspx#browser_emulation and must not be changed.
Functions:
|
Sets the emulation level for wxWidgets WebView. |
Data:
The system default browser emulation level. |
|
Emulate Internet Explorer 10 |
|
Emulate Internet Explorer 10 (force) |
|
Emulate Internet Explorer 11 |
|
Emulate Internet Explorer 12 (force) |
|
Emulate Internet Explorer 7 |
|
Emulate Internet Explorer 8 |
|
Emulate Internet Explorer 8 (force) |
|
Emulate Internet Explorer 9 |
|
Emulate Internet Explorer 9 (force) |
-
MSWSetEmulationLevel
(level=0, program_name=None)[source] Sets the emulation level for wxWidgets WebView.
- Parameters
level – The emulation level to use. Default
0
.program_name – The name of the program to set the emulation level for. Defaults to the Python executable.
- Returns
Whether the operation completed successfully.