;ò )‘†Ac@sÉdkZdkZeidjodklZndklZdeifd„ƒYZd„Z dZ e djoPdk Z dkZdk Z e id eiie id ƒge id ƒndS( Ns __WXMSW__(s FlashWindow(sopjs TestPanelcBs#tZd„Zd„Zd„ZRS(NcCs³tii||dƒt|_titiƒ}titi ƒ}t |dti ƒ|_|iiddtiidƒƒ|i|idddtiƒti|tiƒd ƒ}|iti|i|ƒ|i|dddtitiBd d ƒti|tiƒd ƒ}|iti|i|ƒ|i|dddtitiBd d ƒ|id dfdddtiƒ|i|dddtiƒ|i|ƒ|itƒdS(Niÿÿÿÿsstyleisfile://sdata/Asteroid_blaster.swfs proportionisflagsOpen Flash FilesborderisOpen Flash URLi2i( swxsPanels__init__sselfsparentsNonespdfsBoxSizersVERTICALssizers HORIZONTALsbtnSizers FlashWindows SUNKEN_BORDERsflashs LoadMoviesosspathsabspathsAddsEXPANDsButtonsNewIdsbtnsBinds EVT_BUTTONsOnOpenFileButtonsALLsOnOpenURLButtonsSetSizers SetAutoLayoutsTrue(sselfsparentslogsbtnSizerssizersbtn((ss/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/ActiveX_FlashWindow.pys__init__ s" #))" cCsnti|ddƒ}|iƒtijo5tiƒ|iidd|i ƒƒti ƒn|i ƒdS(Nswildcards*.swfisfile://( swxs FileDialogsselfsdlgs ShowModalsID_OKsBeginBusyCursorsflashs LoadMoviesGetPaths EndBusyCursorsDestroy(sselfseventsdlg((ss/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/ActiveX_FlashWindow.pysOnOpenFileButton(s  cCscti|ddƒ}|iƒtijo*tiƒ|iƒ|i_ ti ƒn|i ƒdS(NsEnter a URL of a .swf files Enter URL( swxsTextEntryDialogsselfsdlgs ShowModalsID_OKsBeginBusyCursorsGetValuesflashsmovies EndBusyCursorsDestroy(sselfseventsdlg((ss/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/ActiveX_FlashWindow.pysOnOpenURLButton3s  (s__name__s __module__s__init__sOnOpenFileButtonsOnOpenURLButton(((ss/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/ActiveX_FlashWindow.pys TestPanel s  cCsTtidjot||ƒ}|Sn*dkl}||ddtiƒ}|SdS(Ns __WXMSW__(s MessagePanels*This demo only works on Microsoft Windows.sSorry( swxsPlatforms TestPanelsnbslogswinsMains MessagePanels ICON_WARNING(sframesnbslogswins MessagePanel((ss/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/ActiveX_FlashWindow.pysrunTestBs  s”

wx.lib.flashwin.FlashWindow

The wx.lib.pdfwin.FlashWindow class is yet another example of using ActiveX controls from wxPython using the new wx.activex module. This allows you to use an ActiveX control as if it is a wx.Window, you can call its methods, set/get properties, and receive events from the ActiveX control in a very intuitive way.

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__sii(sosswxsPlatformswx.lib.flashwins FlashWindowsMainsopjsPanels TestPanelsrunTestsoverviews__name__ssyssrunsmainspathsbasenamesargv( ssyssruns FlashWindowsrunTestsoverviewswxsossopjs TestPanel((ss/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/ActiveX_FlashWindow.pys?s   7