wxpython and IEHtmlWindow, Focus Problem.
kyosohma at gmail.com
Fri Apr 25 14:55:32 CEST 2008
On Apr 24, 11:48 pm, Farsheed Ashouri <rodmena.... at gmail.com> wrote:
> 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):
> self, parent, -1,
> self.sizer = wx.BoxSizer(wx.HORIZONTAL)
> import wx.lib.iewin as iewin
> a = iewin.IEHtmlWindow(self, -1 )
> self.sizer.Add(a, 3, wx.EXPAND,1)
> #self.Bind(wx.EVT_TEXT_ENTER , self.OnKeyPress, a)
> config.CurrentNotebook = a
> #===================Code End==========================
> Thanks in advance.
I recommend re-posting to the wxPython user's group: http://wxpython.org/maillist.php
It may be that you need to set the focus on the html widget and within
the widget, set the focus in one of your text areas. But I don't
really know for sure.
More information about the Python-list