I'm running into an issue that I'd like to understand better. Using
the new wx.html2 in wxPython 2.9.3.1, I found that it does not work in
the context of a wx.Dialog and only works in wx.Frame on OSX. What it
does is it will issue the EVT_WEB_VIEW_NAVIGATING but thats as far as
it goes and it shows only a blank white page. This can be an issue if
I need the UI to suspend execution until the browser is closed.
Here is a simple script that will demonstrate this. You can see if
you use the Show() method, the URL will get loaded properly, but the
ShowModal() one fails. Has anyone else encountered this? I'm curious
to hear solutions/fixes/etc.
# Does
work:
dialog = MyBrowser(None, -1)
dialog.browser.LoadURL("http://www.google.com")
dialog.Show()
app.MainLoop()
···
On Jan 12, 10:31 pm, Rish <rishsha...@gmail.com> wrote:
Hi Robin, et al,
I'm running into an issue that I'd like to understand better. Using
the new wx.html2 in wxPython 2.9.3.1, I found that it does not work in
the context of a wx.Dialog and only works in wx.Frame on OSX. What it
does is it will issue the EVT_WEB_VIEW_NAVIGATING but thats as far as
it goes and it shows only a blank white page. This can be an issue if
I need the UI to suspend execution until the browser is closed.
Here is a simple script that will demonstrate this. You can see if
you use the Show() method, the URL will get loaded properly, but the
ShowModal() one fails. Has anyone else encountered this? I'm curious
to hear solutions/fixes/etc.
Thanks for replying.
I tested that, and it works, but it is using the Show() method of the
dialog class, instead of the ShowModal(). If you take a look at the
code snippet I posted earlier, it does the same thing (i.e. works
under dialog.Show() but not under dialog.ShowModal()).
I'm trying to understand why ShowModal() breaks this class and causes
the browser to refuse to load the given URL.
Thanks for your help,
-Rish
···
On Jan 13, 8:25 am, CJC <jcie.pyt...@gmail.com> wrote:
I'm not sure what's going on. Since I made a modified sample to experiment with it I went ahead and made a new ticket for it and attached the sample there.
I'm running into an issue that I'd like to understand better. Using
the new wx.html2 in wxPython 2.9.3.1, I found that it does not work in
the context of a wx.Dialog and only works in wx.Frame on OSX. What it
does is it will issue the EVT_WEB_VIEW_NAVIGATING but thats as far as
it goes and it shows only a blank white page. This can be an issue if
I need the UI to suspend execution until the browser is closed.
Here is a simple script that will demonstrate this. You can see if
you use the Show() method, the URL will get loaded properly, but the
ShowModal() one fails. Has anyone else encountered this? I'm curious
to hear solutions/fixes/etc.