]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/media.py
Various wxHtml updates
[wxWidgets.git] / wxPython / src / gtk / media.py
1 # This file was created automatically by SWIG 1.3.29.
2 # Don't modify this file, modify the SWIG interface instead.
3
4 """
5 Classes for a media player control
6 """
7
8 import _media
9 import new
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)
13 if (name == "this"):
14 if type(value).__name__ == 'PySwigObject':
15 self.__dict__[name] = value
16 return
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
21 else:
22 raise AttributeError("You cannot add attributes to %s" % self)
23
24 def _swig_setattr(self,class_type,name,value):
25 return _swig_setattr_nondynamic(self,class_type,name,value,0)
26
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
32
33 def _swig_repr(self):
34 try: strthis = "proxy of " + self.this.__repr__()
35 except: strthis = ""
36 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
37
38 import types
39 try:
40 _object = types.ObjectType
41 _newclass = 1
42 except AttributeError:
43 class _object : pass
44 _newclass = 0
45 del types
46
47
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"):
52 set(self,name,value)
53 else:
54 raise AttributeError("You cannot add attributes to %s" % self)
55 return set_attr
56
57
58 import _core
59 wx = _core
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')
71 __repr__ = _swig_repr
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)
77 cvar = _media.cvar
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
84
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')
88 __repr__ = _swig_repr
89 def __init__(self, *args, **kwargs):
90 """
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
96 """
97 _media.MediaCtrl_swiginit(self,_media.new_MediaCtrl(*args, **kwargs))
98 self._setOORInfo(self)
99
100 def Create(*args, **kwargs):
101 """
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
107 """
108 return _media.MediaCtrl_Create(*args, **kwargs)
109
110 def Play(*args, **kwargs):
111 """Play(self) -> bool"""
112 return _media.MediaCtrl_Play(*args, **kwargs)
113
114 def Pause(*args, **kwargs):
115 """Pause(self) -> bool"""
116 return _media.MediaCtrl_Pause(*args, **kwargs)
117
118 def Stop(*args, **kwargs):
119 """Stop(self) -> bool"""
120 return _media.MediaCtrl_Stop(*args, **kwargs)
121
122 def GetState(*args, **kwargs):
123 """GetState(self) -> int"""
124 return _media.MediaCtrl_GetState(*args, **kwargs)
125
126 def GetPlaybackRate(*args, **kwargs):
127 """GetPlaybackRate(self) -> double"""
128 return _media.MediaCtrl_GetPlaybackRate(*args, **kwargs)
129
130 def SetPlaybackRate(*args, **kwargs):
131 """SetPlaybackRate(self, double dRate) -> bool"""
132 return _media.MediaCtrl_SetPlaybackRate(*args, **kwargs)
133
134 def Seek(*args, **kwargs):
135 """Seek(self, wxFileOffset where, int mode=FromStart) -> wxFileOffset"""
136 return _media.MediaCtrl_Seek(*args, **kwargs)
137
138 def Tell(*args, **kwargs):
139 """Tell(self) -> wxFileOffset"""
140 return _media.MediaCtrl_Tell(*args, **kwargs)
141
142 def Length(*args, **kwargs):
143 """Length(self) -> wxFileOffset"""
144 return _media.MediaCtrl_Length(*args, **kwargs)
145
146 def GetVolume(*args, **kwargs):
147 """GetVolume(self) -> double"""
148 return _media.MediaCtrl_GetVolume(*args, **kwargs)
149
150 def SetVolume(*args, **kwargs):
151 """SetVolume(self, double dVolume) -> bool"""
152 return _media.MediaCtrl_SetVolume(*args, **kwargs)
153
154 def ShowPlayerControls(*args, **kwargs):
155 """ShowPlayerControls(self, int flags=MEDIACTRLPLAYERCONTROLS_DEFAULT) -> bool"""
156 return _media.MediaCtrl_ShowPlayerControls(*args, **kwargs)
157
158 def Load(*args, **kwargs):
159 """Load(self, String fileName) -> bool"""
160 return _media.MediaCtrl_Load(*args, **kwargs)
161
162 def LoadURI(*args, **kwargs):
163 """LoadURI(self, String fileName) -> bool"""
164 return _media.MediaCtrl_LoadURI(*args, **kwargs)
165
166 def LoadURIWithProxy(*args, **kwargs):
167 """LoadURIWithProxy(self, String fileName, String proxy) -> bool"""
168 return _media.MediaCtrl_LoadURIWithProxy(*args, **kwargs)
169
170 LoadFromURI = LoadURI
171 def GetDownloadProgress(*args, **kwargs):
172 """GetDownloadProgress(self) -> wxFileOffset"""
173 return _media.MediaCtrl_GetDownloadProgress(*args, **kwargs)
174
175 def GetDownloadTotal(*args, **kwargs):
176 """GetDownloadTotal(self) -> wxFileOffset"""
177 return _media.MediaCtrl_GetDownloadTotal(*args, **kwargs)
178
179 MediaCtrl_swigregister = _media.MediaCtrl_swigregister
180 MediaCtrl_swigregister(MediaCtrl)
181 MediaCtrlNameStr = cvar.MediaCtrlNameStr
182
183 def PreMediaCtrl(*args, **kwargs):
184 """PreMediaCtrl() -> MediaCtrl"""
185 val = _media.new_PreMediaCtrl(*args, **kwargs)
186 return val
187
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)
200
201
202