]>
git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/media.py
1 # This file was created automatically by SWIG.
2 # Don't modify this file, modify the SWIG interface instead.
5 Classes for a media player control
12 __docfilter__
= wx
.__DocFilter
(globals())
13 MEDIASTATE_STOPPED
= _media
.MEDIASTATE_STOPPED
14 MEDIASTATE_PAUSED
= _media
.MEDIASTATE_PAUSED
15 MEDIASTATE_PLAYING
= _media
.MEDIASTATE_PLAYING
16 class MediaEvent(_core
.NotifyEvent
):
18 return "<%s.%s; proxy of C++ wxMediaEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
19 def __init__(self
, *args
, **kwargs
):
20 """__init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> MediaEvent"""
21 newobj
= _media
.new_MediaEvent(*args
, **kwargs
)
22 self
.this
= newobj
.this
26 class MediaEventPtr(MediaEvent
):
27 def __init__(self
, this
):
29 if not hasattr(self
,"thisown"): self
.thisown
= 0
30 self
.__class
__ = MediaEvent
31 _media
.MediaEvent_swigregister(MediaEventPtr
)
33 class MediaCtrl(_core
.Control
):
35 return "<%s.%s; proxy of C++ wxMediaCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
36 def __init__(self
, *args
, **kwargs
):
38 __init__(self, Window parent, int id=-1, String fileName=EmptyString,
39 Point pos=DefaultPosition, Size size=DefaultSize,
40 long style=0, String szBackend=EmptyString,
41 Validator validator=DefaultValidator,
42 String name=MediaCtrlNameStr) -> MediaCtrl
44 newobj
= _media
.new_MediaCtrl(*args
, **kwargs
)
45 self
.this
= newobj
.this
48 self
._setOORInfo
(self
)
50 def Create(*args
, **kwargs
):
52 Create(self, Window parent, int id=-1, String fileName=EmptyString,
53 Point pos=DefaultPosition, Size size=DefaultSize,
54 long style=0, String szBackend=EmptyString,
55 Validator validator=DefaultValidator,
56 String name=MediaCtrlNameStr) -> bool
58 return _media
.MediaCtrl_Create(*args
, **kwargs
)
60 def Play(*args
, **kwargs
):
61 """Play(self) -> bool"""
62 return _media
.MediaCtrl_Play(*args
, **kwargs
)
64 def Pause(*args
, **kwargs
):
65 """Pause(self) -> bool"""
66 return _media
.MediaCtrl_Pause(*args
, **kwargs
)
68 def Stop(*args
, **kwargs
):
69 """Stop(self) -> bool"""
70 return _media
.MediaCtrl_Stop(*args
, **kwargs
)
72 def Load(*args
, **kwargs
):
73 """Load(self, String fileName) -> bool"""
74 return _media
.MediaCtrl_Load(*args
, **kwargs
)
76 def LoadFromURI(*args
, **kwargs
):
77 """LoadFromURI(self, String location) -> bool"""
78 return _media
.MediaCtrl_LoadFromURI(*args
, **kwargs
)
80 def Loop(*args
, **kwargs
):
81 """Loop(self, bool bLoop=True)"""
82 return _media
.MediaCtrl_Loop(*args
, **kwargs
)
84 def IsLooped(*args
, **kwargs
):
85 """IsLooped(self) -> bool"""
86 return _media
.MediaCtrl_IsLooped(*args
, **kwargs
)
88 def GetState(*args
, **kwargs
):
89 """GetState(self) -> int"""
90 return _media
.MediaCtrl_GetState(*args
, **kwargs
)
92 def GetPlaybackRate(*args
, **kwargs
):
93 """GetPlaybackRate(self) -> double"""
94 return _media
.MediaCtrl_GetPlaybackRate(*args
, **kwargs
)
96 def SetPlaybackRate(*args
, **kwargs
):
97 """SetPlaybackRate(self, double dRate) -> bool"""
98 return _media
.MediaCtrl_SetPlaybackRate(*args
, **kwargs
)
100 def Seek(*args
, **kwargs
):
101 """Seek(self, wxFileOffset where, int mode=FromStart) -> wxFileOffset"""
102 return _media
.MediaCtrl_Seek(*args
, **kwargs
)
104 def Tell(*args
, **kwargs
):
105 """Tell(self) -> wxFileOffset"""
106 return _media
.MediaCtrl_Tell(*args
, **kwargs
)
108 def Length(*args
, **kwargs
):
109 """Length(self) -> wxFileOffset"""
110 return _media
.MediaCtrl_Length(*args
, **kwargs
)
113 class MediaCtrlPtr(MediaCtrl
):
114 def __init__(self
, this
):
116 if not hasattr(self
,"thisown"): self
.thisown
= 0
117 self
.__class
__ = MediaCtrl
118 _media
.MediaCtrl_swigregister(MediaCtrlPtr
)
120 MediaCtrlNameStr
= cvar
.MediaCtrlNameStr
122 def PreMediaCtrl(*args
, **kwargs
):
123 """PreMediaCtrl() -> MediaCtrl"""
124 val
= _media
.new_PreMediaCtrl(*args
, **kwargs
)
128 wxEVT_MEDIA_FINISHED
= _media
.wxEVT_MEDIA_FINISHED
129 wxEVT_MEDIA_STOP
= _media
.wxEVT_MEDIA_STOP
130 EVT_MEDIA_FINISHED
= wx
.PyEventBinder( wxEVT_MEDIA_FINISHED
, 1)
131 EVT_MEDIA_STOP
= wx
.PyEventBinder( wxEVT_MEDIA_STOP
, 1)