[ wxwindows-Bugs-1542188 ] iewin crashes unless SetFocus called
before keypress
SourceForge.net
noreply at sourceforge.net
Thu Aug 17 12:23:18 PDT 2006
Bugs item #1542188, was opened at 2006-08-17 12:23
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1542188&group_id=9863
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: wxMSW specific
Group: Fatal
Status: Open
Resolution: None
Priority: 5
Submitted By: jjackson (jejackson)
Assigned to: Nobody/Anonymous (nobody)
Summary: iewin crashes unless SetFocus called before keypress
Initial Comment:
#This sample program crashes if you press the Control key once the
window comes up.
#
# testHTMLWindow.py
#
# Created by John Jackson on 08/15/06.
#
# Run as
# c:\python24\python.exe testHTMLWindow.py
#
# Demonstrates crash of Python when Control key is pressed.
# Once the html window comes up -- before doing anything else --
press the Control key.
# Python will crash.
# Remove the comment on the line "self.SetFocus()" to prevent the
crash.
# Tested with wxpython 2.6.3.3 on python 2.4.3, wxMSW ansi, under
Windows XP sp2 Build 2600
import wx
import wx.lib.iewin as iewin
class MyApp(wx.App):
def OnInit(self):
frame = HTMLDisplayWindow(url="http://www.wxpython.org/")
frame.Show()
return True
class HTMLDisplayWindow(wx.Frame):
def __init__(self, url=""):
wx.Frame.__init__(self, None, -1, pos=wx.DefaultPosition, size=
(700, 400), style=wx.DEFAULT_FRAME_STYLE|wx.ALWAYS_SHOW_SB)
self.htmlWindow = iewin.IEHtmlWindow(self, -1,
style=wx.NO_FULL_REPAINT_ON_RESIZE)
self.htmlWindow.LoadUrl(url)
# self.SetFocus()
if __name__ == '__main__':
app = MyApp(False)
app.MainLoop()
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1542188&group_id=9863
More information about the wx-dev
mailing list