wxpython and IEHtmlWindow, Focus Problem.



Hi everyone. I create a little browser with wxpython and IEHtmlWindow.
But I have a little problem here.
When I press enter in the html page, The focus goes to another panel.
Why this happens?
I want to load a html page and it have textares and user should able
to press enter inside html page.

This is the code for creating it:

#===================Code Begin ==========================
class PageOne(wx.Panel):
def __init__(self, parent):
wx.Panel.__init__(
self, parent, -1,
style=wx.TAB_TRAVERSAL|wx.CLIP_CHILDREN|
wx.NO_FULL_REPAINT_ON_RESIZE
)

self.sizer = wx.BoxSizer(wx.HORIZONTAL)
import wx.lib.iewin as iewin
a = iewin.IEHtmlWindow(self, -1 )
#a.LoadUrl('file:///E:/Ducuments/EL%20Software%20Project/
mainSoft/xmlParser/HTML/learn/less2.html')
self.sizer.Add(a, 3, wx.EXPAND,1)
self.SetSizer(self.sizer)
#self.Bind(wx.EVT_TEXT_ENTER , self.OnKeyPress, a)
config.CurrentNotebook = a

#===================Code End==========================

Thanks in advance.
.



Relevant Pages

  • Re: Simple question ??
    ... A web page is basically an HTML document. ... a technology that, at the most basic level, delivers HTML to a web browser. ... Internet Explorer, for example, can display Word documents, ... file format to a browser in its native state. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Toward WYSIWYG Web Page Authoring
    ... HTML and the web browser, ... Of course, even at the time of the first GUIs for developing HTML, WYSIWYG ... The best answer has emerged in the form of XML. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Mulberry gone, now what?
    ... > browsers is about reading broken HTML. ... It's easier for a browser to be backwards ... bear on web developers ("My son at college says the page looks different ...
    (comp.mail.imap)
  • Re: Toward WYSIWYG Web Page Authoring
    ... >> WYSIWYG Web page development capability on the Web - ever? ... > HTML and the web browser, ... > browser being the only web browser in existence at the time. ... The best answer has emerged in the form of XML. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Toward WYSIWYG Web Page Authoring
    ... >> HTML and the web browser, ... >> browser being the only web browser in existence at the time. ... >> WYSIWYG was already an impossible goal. ... The best answer has emerged in the form of XML. ...
    (microsoft.public.dotnet.framework.aspnet)