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:

MSWSetEmulationLevel([level, program_name])

Sets the emulation level for wxWidgets WebView.

Data:

wxWEBVIEWIE_EMU_DEFAULT

The system default browser emulation level.

wxWEBVIEWIE_EMU_IE10

Emulate Internet Explorer 10

wxWEBVIEWIE_EMU_IE10_FORCE

Emulate Internet Explorer 10 (force)

wxWEBVIEWIE_EMU_IE11

Emulate Internet Explorer 11

wxWEBVIEWIE_EMU_IE11_FORCE

Emulate Internet Explorer 12 (force)

wxWEBVIEWIE_EMU_IE7

Emulate Internet Explorer 7

wxWEBVIEWIE_EMU_IE8

Emulate Internet Explorer 8

wxWEBVIEWIE_EMU_IE8_FORCE

Emulate Internet Explorer 8 (force)

wxWEBVIEWIE_EMU_IE9

Emulate Internet Explorer 9

wxWEBVIEWIE_EMU_IE9_FORCE

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.

wxWEBVIEWIE_EMU_DEFAULT = 0

Type:    int

The system default browser emulation level.

wxWEBVIEWIE_EMU_IE10 = 10000

Type:    int

Emulate Internet Explorer 10

wxWEBVIEWIE_EMU_IE10_FORCE = 10001

Type:    int

Emulate Internet Explorer 10 (force)

wxWEBVIEWIE_EMU_IE11 = 11000

Type:    int

Emulate Internet Explorer 11

wxWEBVIEWIE_EMU_IE11_FORCE = 11001

Type:    int

Emulate Internet Explorer 12 (force)

wxWEBVIEWIE_EMU_IE7 = 7000

Type:    int

Emulate Internet Explorer 7

wxWEBVIEWIE_EMU_IE8 = 8000

Type:    int

Emulate Internet Explorer 8

wxWEBVIEWIE_EMU_IE8_FORCE = 8888

Type:    int

Emulate Internet Explorer 8 (force)

wxWEBVIEWIE_EMU_IE9 = 9000

Type:    int

Emulate Internet Explorer 9

wxWEBVIEWIE_EMU_IE9_FORCE = 9999

Type:    int

Emulate Internet Explorer 9 (force)