Re: Limited JavaScript functionality in MSW with wx.html2
niki <[email protected]>
| Newsgroups | gmane.comp.python.wxpython |
|---|---|
| Message-ID | <[email protected]> |
On 5.02.20 г. 20:33 ч., Dan Cutright wrote: > I received the following message in my email, but doesn't appear to be > actually posted? > > Check that IE is v.11 and use registry to set compatibility mode to > IE 11. > > Niki > > > I have done that, but it does not enable all of the JS features > apparently, below is the code I use to accomplish that. If my > application user is on windows, I call set_ie_emulation_level and > set_ie_lockdown_level. Now it's possible the IE emulator simply has some > JS issues I can't overcome and perhaps the loaded javascript itself > needs to be changed? But I'd need the JS console output to figure that out. > > I have posted on wx-users (topic: Limited JavaScript functionality in > MSW with wx.html2), but no advice posted yet. > https://groups.google.com/forum/#!topic/wx-users/6sy4AFl_xHY > > > | > > |importwinreg > importsys > fromos.path importbasename > > > defset_reg(name,reg_path,value): > try: > winreg.CreateKey(winreg.HKEY_CURRENT_USER,reg_path) > registry_key > =winreg.OpenKey(winreg.HKEY_CURRENT_USER,reg_path,0,winreg.KEY_WRITE) > winreg.SetValueEx(registry_key,name,0,winreg.REG_DWORD,value) > winreg.CloseKey(registry_key) > returnTrue > exceptWindowsError: > returnFalse > > defset_ie_emulation_level(value=11001): > # See this site for information on which values to use > # > https://docs.microsoft.com/en-us/previous-versions/windows/internet-explorer/ie-developer/general-info/ee330730(v=vs.85)#browser_emulation > reg_path =r"Software\Microsoft\Internet > Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION" > set_reg(basename(sys.executable),reg_path,value) We use innosetup to write to registry, %(EXE)s is the name of the program Root: HKLM; SubKey: SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION; ValueName: "%(EXE)s"; ValueType: dword; ValueData: 11000 *Not* tested with bokeh. Niki -- You received this message because you are subscribed to the Google Groups "wxPython-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/wxpython-users/183b4dd7-fa38-2b15-eae8-e25346afbbdd%40vintech.bg.