;ò )‘†Ac @ sÉ d k Z d k Z e i d j o d k l Z n d k l Z d e i f d „ ƒ YZ d „ Z d Z e d j oP d k Z d k Z d k Z e i d e i i e i d ƒ g e i d ƒ n d S( Ns __WXMSW__( s FlashWindow( s opjs TestPanelc B s# t Z d „ Z d „ Z d „ Z RS( Nc C s³ t i i | | d ƒ t | _ t i t i ƒ } t i t i ƒ } t | d t i ƒ| _ | i i d d t i i d ƒ ƒ | i | i d d d t i ƒt i | t i ƒ d ƒ } | i t i | i | ƒ | i | d d d t i t i Bd d ƒt i | t i ƒ d ƒ } | i t i | i | ƒ | i | d d d t i t i Bd d ƒ| i d d f d d d t i ƒ| i | d d d t i ƒ| i | ƒ | i t ƒ d S( Niÿÿÿÿs stylei s file://s data/Asteroid_blaster.swfs proportioni s flags Open Flash Files borderi s Open Flash URLi2 i ( s wxs Panels __init__s selfs parents Nones pdfs BoxSizers VERTICALs sizers HORIZONTALs btnSizers FlashWindows SUNKEN_BORDERs flashs LoadMovies oss paths abspaths Adds EXPANDs Buttons NewIds btns Binds EVT_BUTTONs OnOpenFileButtons ALLs OnOpenURLButtons SetSizers SetAutoLayouts True( s selfs parents logs btnSizers sizers btn( ( ss /mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/ActiveX_FlashWindow.pys __init__ s" #))" c C sn t i | d d ƒ} | i ƒ t i j o5 t i ƒ | i i d d | i ƒ ƒ t i ƒ n | i ƒ d S( Ns wildcards *.swfi s file://( s wxs FileDialogs selfs dlgs ShowModals ID_OKs BeginBusyCursors flashs LoadMovies GetPaths EndBusyCursors Destroy( s selfs events dlg( ( ss /mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/ActiveX_FlashWindow.pys OnOpenFileButton( s c C sc t i | d d ƒ } | i ƒ t i j o* t i ƒ | i ƒ | i _ t i ƒ n | i ƒ d S( Ns Enter a URL of a .swf files Enter URL( s wxs TextEntryDialogs selfs dlgs ShowModals ID_OKs BeginBusyCursors GetValues flashs movies EndBusyCursors Destroy( s selfs events dlg( ( ss /mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/ActiveX_FlashWindow.pys OnOpenURLButton3 s ( s __name__s __module__s __init__s OnOpenFileButtons OnOpenURLButton( ( ( ss /mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/ActiveX_FlashWindow.pys TestPanel s c C sT t i d j o t | | ƒ } | Sn* d k l } | | d d t i ƒ } | Sd S( Ns __WXMSW__( s MessagePanels* This demo only works on Microsoft Windows.s Sorry( s wxs Platforms TestPanels nbs logs wins Mains MessagePanels ICON_WARNING( s frames nbs logs wins MessagePanel( ( ss /mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/ActiveX_FlashWindow.pys runTestB s s”
Using this class is simpler than ActiveXWrapper, doesn't rely on the win32all extensions, and is more "wx'ish", meaning that it uses events and etc. as would be expected from any other wx window.
This demo embeds the Shockwave Flash control, and lets you play a game. s __main__s i i ( s oss wxs Platforms wx.lib.flashwins FlashWindows Mains opjs Panels TestPanels runTests overviews __name__s syss runs mains paths basenames argv( s syss runs FlashWindows runTests overviews wxs oss opjs TestPanel( ( ss /mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/ActiveX_FlashWindow.pys ? s 7