FlashWindow error

Hey everyone,

We are using a FlashWindow (from wx.lib.flashwin import FlashWindow) to show tutorials made in Wink, but they are not working anymore. I have been able to duplicate the wonderful PyAssertionError in a very tiny example of code attached. Was this broken in wx2.8.1, or python 2.5? Any help would be greatly appreciated as we can't really roll this product out without our tutorials and were hoping to do so soon.

Thanks!
Mike

test.py (402 Bytes)

Rooney, Mike (ext. 324) wrote:

Hey everyone,

We are using a FlashWindow (from wx.lib.flashwin import FlashWindow) to show tutorials made in Wink, but they are not working anymore. I have been able to duplicate the wonderful PyAssertionError in a very tiny example of code attached. Was this broken in wx2.8.1, or python 2.5? Any help would be greatly appreciated as we can't really roll this product out without our tutorials and were hoping to do so soon.

I don't get an error. What is the actual traceback you are seeing?

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

I don't get an error. What is the actual traceback you are seeing?

How interesting, here is what I get:

Traceback (most recent call last):
  File "test.py", line 18, in <module>
    MyApp(0).MainLoop()
  File "C:\Python25\Lib\site-packages\wx-2.8-msw-unicode\wx\_core.py", line 7757, in __init__
    self._BootstrapApp()
  File "C:\Python25\Lib\site-packages\wx-2.8-msw-unicode\wx\_core.py", line 7354, in _BootstrapApp
    return _core_.PyApp__BootstrapApp(*args, **kwargs)
  File "test.py", line 13, in OnInit
    frame = TestFrame(None)
  File "test.py", line 9, in __init__
    self.flash = FlashWindow(self)
  File "C:\Python25\Lib\site-packages\wx-2.8-msw-unicode\wx\lib\flashwin.py", line 40, in __init__
    ID, pos, size, style, name)
  File "C:\Python25\Lib\site-packages\wx-2.8-msw-unicode\wx\activex.py", line 226, in __init__
    _activex.ActiveXWindow_swiginit(self,_activex.new_ActiveXWindow(*args, **kwargs))
wx._core.PyAssertionError: C++ assertion "m_ActiveX.Ok()" failed at contrib\activex\wxie/wxactivex.cpp(323) in wxActiveX::CreateActiveX(): m_ActiveX.CreateInstance failed

The problem was that I didn't have Flash installed for Internet Explorer (althought I did for Firefox).
This is really weird to me, as it doesn't seem like only people that use IE should be able to view our
flash tutorials inside our application. Is there any way to decouple this from browser plugins? Maybe
I am not quite understanding it.

···

-----Original Message-----
From: Rooney, Mike (ext. 324) [mailto:mxr@qvii.com]
Sent: Monday, February 05, 2007 4:30 PM
To: wxPython-users@lists.wxwidgets.org
Subject: RE: [wxPython-users] FlashWindow error

I don't get an error. What is the actual traceback you are seeing?

How interesting, here is what I get:

Traceback (most recent call last):
  File "test.py", line 18, in <module>
    MyApp(0).MainLoop()
  File "C:\Python25\Lib\site-packages\wx-2.8-msw-unicode\wx\_core.py", line 7757, in __init__
    self._BootstrapApp()
  File "C:\Python25\Lib\site-packages\wx-2.8-msw-unicode\wx\_core.py", line 7354, in _BootstrapApp
    return _core_.PyApp__BootstrapApp(*args, **kwargs)
  File "test.py", line 13, in OnInit
    frame = TestFrame(None)
  File "test.py", line 9, in __init__
    self.flash = FlashWindow(self)
  File "C:\Python25\Lib\site-packages\wx-2.8-msw-unicode\wx\lib\flashwin.py", line 40, in __init__
    ID, pos, size, style, name)
  File "C:\Python25\Lib\site-packages\wx-2.8-msw-unicode\wx\activex.py", line 226, in __init__
    _activex.ActiveXWindow_swiginit(self,_activex.new_ActiveXWindow(*args, **kwargs))
wx._core.PyAssertionError: C++ assertion "m_ActiveX.Ok()" failed at contrib\activex\wxie/wxactivex.cpp(323) in wxActiveX::CreateActiveX(): m_ActiveX.CreateInstance failed

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org

Rooney, Mike (ext. 324) wrote:

The problem was that I didn't have Flash installed for Internet Explorer (althought I did for Firefox).
This is really weird to me, as it doesn't seem like only people that use IE should be able to view our
flash tutorials inside our application. Is there any way to decouple this from browser plugins? Maybe
I am not quite understanding it.

It's not a specific to the browser, but it does require an ActiveX control. (FlashWindow derives from wx.activex.ActiveXWindow.) So if Flash only installs the ActiveX version when you specify IE support then that's what you need to do.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

It's not a specific to the browser, but it does require an ActiveX
control. (FlashWindow derives from wx.activex.ActiveXWindow.) So if
Flash only installs the ActiveX version when you specify IE support then
that's what you need to do.

Okay, fair enough. Thanks!