wx.html2 inside a panel

Hello,

If I place a wx.html2 widget inside a wx.panel, I can’t select any text inside html2.

Please find attached a small runnable sample.

html2test.zip

I’m on Windows 8 32 bit, Python 2.7.2, wxPython 2.9.4.0

···


Alexei Vinidiktov

Hi Alexei,

···

On 11/04/2013 18:08, Alexei Vinidiktov wrote:

Hello,

If I place a wx.html2 widget inside a wx.panel, I can't select any text inside html2.

Please find attached a small runnable sample.

Your parenting is not correct.

         self.webview = wx.html2.WebView.New(self)

should be:

         self.webview = wx.html2.WebView.New(self.m_panel3)

Werner

Thank you, Werner!

It now works!

···

On Fri, Apr 12, 2013 at 12:00 AM, werner <wbruhin@free.fr> wrote:

Hi Alexei,

On 11/04/2013 18:08, Alexei Vinidiktov wrote:

Hello,

If I place a wx.html2 widget inside a wx.panel, I can't select any text
inside html2.

Please find attached a small runnable sample.

Your parenting is not correct.

        self.webview = wx.html2.WebView.New(self)

should be:

        self.webview = wx.html2.WebView.New(self.m_**panel3)

--
Alexei Vinidiktov