1 # This file was created automatically by SWIG 1.3.29. 
   2 # Don't modify this file, modify the SWIG interface instead. 
   5 Classes for a media player control 
  10 new_instancemethod 
= new
.instancemethod
 
  11 def _swig_setattr_nondynamic(self
,class_type
,name
,value
,static
=1): 
  12     if (name 
== "thisown"): return self
.this
.own(value
) 
  14         if type(value
).__name
__ == 'PySwigObject': 
  15             self
.__dict
__[name
] = value
 
  17     method 
= class_type
.__swig
_setmethods
__.get(name
,None) 
  18     if method
: return method(self
,value
) 
  19     if (not static
) or hasattr(self
,name
): 
  20         self
.__dict
__[name
] = value
 
  22         raise AttributeError("You cannot add attributes to %s" % self
) 
  24 def _swig_setattr(self
,class_type
,name
,value
): 
  25     return _swig_setattr_nondynamic(self
,class_type
,name
,value
,0) 
  27 def _swig_getattr(self
,class_type
,name
): 
  28     if (name 
== "thisown"): return self
.this
.own() 
  29     method 
= class_type
.__swig
_getmethods
__.get(name
,None) 
  30     if method
: return method(self
) 
  31     raise AttributeError,name
 
  34     try: strthis 
= "proxy of " + self
.this
.__repr
__() 
  36     return "<%s.%s; %s >" % (self
.__class
__.__module
__, self
.__class
__.__name
__, strthis
,) 
  40     _object 
= types
.ObjectType
 
  42 except AttributeError: 
  48 def _swig_setattr_nondynamic_method(set): 
  49     def set_attr(self
,name
,value
): 
  50         if (name 
== "thisown"): return self
.this
.own(value
) 
  51         if hasattr(self
,name
) or (name 
== "this"): 
  54             raise AttributeError("You cannot add attributes to %s" % self
) 
  60 __docfilter__ 
= wx
.__DocFilter
(globals())  
  61 MEDIASTATE_STOPPED 
= _media
.MEDIASTATE_STOPPED
 
  62 MEDIASTATE_PAUSED 
= _media
.MEDIASTATE_PAUSED
 
  63 MEDIASTATE_PLAYING 
= _media
.MEDIASTATE_PLAYING
 
  64 MEDIACTRLPLAYERCONTROLS_NONE 
= _media
.MEDIACTRLPLAYERCONTROLS_NONE
 
  65 MEDIACTRLPLAYERCONTROLS_STEP 
= _media
.MEDIACTRLPLAYERCONTROLS_STEP
 
  66 MEDIACTRLPLAYERCONTROLS_VOLUME 
= _media
.MEDIACTRLPLAYERCONTROLS_VOLUME
 
  67 MEDIACTRLPLAYERCONTROLS_DEFAULT 
= _media
.MEDIACTRLPLAYERCONTROLS_DEFAULT
 
  68 class MediaEvent(_core
.NotifyEvent
): 
  69     """Proxy of C++ MediaEvent class""" 
  70     thisown 
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag') 
  72     def __init__(self
, *args
, **kwargs
):  
  73         """__init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> MediaEvent""" 
  74         _media
.MediaEvent_swiginit(self
,_media
.new_MediaEvent(*args
, **kwargs
)) 
  75 MediaEvent_swigregister 
= _media
.MediaEvent_swigregister
 
  76 MediaEvent_swigregister(MediaEvent
) 
  78 MEDIABACKEND_DIRECTSHOW 
= cvar
.MEDIABACKEND_DIRECTSHOW
 
  79 MEDIABACKEND_MCI 
= cvar
.MEDIABACKEND_MCI
 
  80 MEDIABACKEND_QUICKTIME 
= cvar
.MEDIABACKEND_QUICKTIME
 
  81 MEDIABACKEND_GSTREAMER 
= cvar
.MEDIABACKEND_GSTREAMER
 
  82 MEDIABACKEND_REALPLAYER 
= cvar
.MEDIABACKEND_REALPLAYER
 
  83 MEDIABACKEND_WMP10 
= cvar
.MEDIABACKEND_WMP10
 
  85 class MediaCtrl(_core
.Control
): 
  86     """Proxy of C++ MediaCtrl class""" 
  87     thisown 
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag') 
  89     def __init__(self
, *args
, **kwargs
):  
  91         __init__(self, Window parent, int id=-1, String fileName=EmptyString,  
  92             Point pos=DefaultPosition, Size size=DefaultSize,  
  93             long style=0, String szBackend=EmptyString,  
  94             Validator validator=DefaultValidator,  
  95             String name=MediaCtrlNameStr) -> MediaCtrl 
  97         _media
.MediaCtrl_swiginit(self
,_media
.new_MediaCtrl(*args
, **kwargs
)) 
  98         self
._setOORInfo
(self
) 
 100     def Create(*args
, **kwargs
): 
 102         Create(self, Window parent, int id=-1, String fileName=EmptyString,  
 103             Point pos=DefaultPosition, Size size=DefaultSize,  
 104             long style=0, String szBackend=EmptyString,  
 105             Validator validator=DefaultValidator,  
 106             String name=MediaCtrlNameStr) -> bool 
 108         return _media
.MediaCtrl_Create(*args
, **kwargs
) 
 110     def Play(*args
, **kwargs
): 
 111         """Play(self) -> bool""" 
 112         return _media
.MediaCtrl_Play(*args
, **kwargs
) 
 114     def Pause(*args
, **kwargs
): 
 115         """Pause(self) -> bool""" 
 116         return _media
.MediaCtrl_Pause(*args
, **kwargs
) 
 118     def Stop(*args
, **kwargs
): 
 119         """Stop(self) -> bool""" 
 120         return _media
.MediaCtrl_Stop(*args
, **kwargs
) 
 122     def GetState(*args
, **kwargs
): 
 123         """GetState(self) -> int""" 
 124         return _media
.MediaCtrl_GetState(*args
, **kwargs
) 
 126     def GetPlaybackRate(*args
, **kwargs
): 
 127         """GetPlaybackRate(self) -> double""" 
 128         return _media
.MediaCtrl_GetPlaybackRate(*args
, **kwargs
) 
 130     def SetPlaybackRate(*args
, **kwargs
): 
 131         """SetPlaybackRate(self, double dRate) -> bool""" 
 132         return _media
.MediaCtrl_SetPlaybackRate(*args
, **kwargs
) 
 134     def Seek(*args
, **kwargs
): 
 135         """Seek(self, wxFileOffset where, int mode=FromStart) -> wxFileOffset""" 
 136         return _media
.MediaCtrl_Seek(*args
, **kwargs
) 
 138     def Tell(*args
, **kwargs
): 
 139         """Tell(self) -> wxFileOffset""" 
 140         return _media
.MediaCtrl_Tell(*args
, **kwargs
) 
 142     def Length(*args
, **kwargs
): 
 143         """Length(self) -> wxFileOffset""" 
 144         return _media
.MediaCtrl_Length(*args
, **kwargs
) 
 146     def GetVolume(*args
, **kwargs
): 
 147         """GetVolume(self) -> double""" 
 148         return _media
.MediaCtrl_GetVolume(*args
, **kwargs
) 
 150     def SetVolume(*args
, **kwargs
): 
 151         """SetVolume(self, double dVolume) -> bool""" 
 152         return _media
.MediaCtrl_SetVolume(*args
, **kwargs
) 
 154     def ShowPlayerControls(*args
, **kwargs
): 
 155         """ShowPlayerControls(self, int flags=MEDIACTRLPLAYERCONTROLS_DEFAULT) -> bool""" 
 156         return _media
.MediaCtrl_ShowPlayerControls(*args
, **kwargs
) 
 158     def Load(*args
, **kwargs
): 
 159         """Load(self, String fileName) -> bool""" 
 160         return _media
.MediaCtrl_Load(*args
, **kwargs
) 
 162     def LoadURI(*args
, **kwargs
): 
 163         """LoadURI(self, String fileName) -> bool""" 
 164         return _media
.MediaCtrl_LoadURI(*args
, **kwargs
) 
 166     def LoadURIWithProxy(*args
, **kwargs
): 
 167         """LoadURIWithProxy(self, String fileName, String proxy) -> bool""" 
 168         return _media
.MediaCtrl_LoadURIWithProxy(*args
, **kwargs
) 
 170     LoadFromURI 
= LoadURI 
 
 171     def GetDownloadProgress(*args
, **kwargs
): 
 172         """GetDownloadProgress(self) -> wxFileOffset""" 
 173         return _media
.MediaCtrl_GetDownloadProgress(*args
, **kwargs
) 
 175     def GetDownloadTotal(*args
, **kwargs
): 
 176         """GetDownloadTotal(self) -> wxFileOffset""" 
 177         return _media
.MediaCtrl_GetDownloadTotal(*args
, **kwargs
) 
 179 MediaCtrl_swigregister 
= _media
.MediaCtrl_swigregister
 
 180 MediaCtrl_swigregister(MediaCtrl
) 
 181 MediaCtrlNameStr 
= cvar
.MediaCtrlNameStr
 
 183 def PreMediaCtrl(*args
, **kwargs
): 
 184     """PreMediaCtrl() -> MediaCtrl""" 
 185     val 
= _media
.new_PreMediaCtrl(*args
, **kwargs
) 
 188 wxEVT_MEDIA_FINISHED 
= _media
.wxEVT_MEDIA_FINISHED
 
 189 wxEVT_MEDIA_STOP 
= _media
.wxEVT_MEDIA_STOP
 
 190 wxEVT_MEDIA_LOADED 
= _media
.wxEVT_MEDIA_LOADED
 
 191 wxEVT_MEDIA_STATECHANGED 
= _media
.wxEVT_MEDIA_STATECHANGED
 
 192 wxEVT_MEDIA_PLAY 
= _media
.wxEVT_MEDIA_PLAY
 
 193 wxEVT_MEDIA_PAUSE 
= _media
.wxEVT_MEDIA_PAUSE
 
 194 EVT_MEDIA_FINISHED       
= wx
.PyEventBinder( wxEVT_MEDIA_FINISHED
, 1) 
 195 EVT_MEDIA_STOP           
= wx
.PyEventBinder( wxEVT_MEDIA_STOP
, 1) 
 196 EVT_MEDIA_LOADED         
= wx
.PyEventBinder( wxEVT_MEDIA_LOADED
, 1) 
 197 EVT_MEDIA_STATECHANGED   
= wx
.PyEventBinder( wxEVT_MEDIA_STATECHANGED
, 1) 
 198 EVT_MEDIA_PLAY           
= wx
.PyEventBinder( wxEVT_MEDIA_PLAY
, 1) 
 199 EVT_MEDIA_PAUSE          
= wx
.PyEventBinder( wxEVT_MEDIA_PAUSE
, 1)