]>
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 medai 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 MEDIATIMEFORMAT_TIME
= _media
.MEDIATIMEFORMAT_TIME
17 class MediaEvent(_core
.NotifyEvent
):
19 return "<%s.%s; proxy of C++ wxMediaEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
20 def __init__(self
, *args
, **kwargs
):
21 """__init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> MediaEvent"""
22 newobj
= _media
.new_MediaEvent(*args
, **kwargs
)
23 self
.this
= newobj
.this
27 class MediaEventPtr(MediaEvent
):
28 def __init__(self
, this
):
30 if not hasattr(self
,"thisown"): self
.thisown
= 0
31 self
.__class
__ = MediaEvent
32 _media
.MediaEvent_swigregister(MediaEventPtr
)
34 class MediaCtrl(_core
.Control
):
36 return "<%s.%s; proxy of C++ wxMediaCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
37 def __init__(self
, *args
, **kwargs
):
39 __init__(self, Window parent, int id=-1, String fileName=EmptyString,
40 Point pos=DefaultPosition, Size size=DefaultSize,
41 long style=0, String szBackend=EmptyString,
42 Validator validator=DefaultValidator,
43 String name=MediaCtrlNameStr) -> MediaCtrl
45 newobj
= _media
.new_MediaCtrl(*args
, **kwargs
)
46 self
.this
= newobj
.this
49 self
._setOORInfo
(self
)
51 def CreateFromURI(*args
, **kwargs
):
53 CreateFromURI(self, Window parent, int id=-1, String location=EmptyString,
54 Point pos=DefaultPosition, Size size=DefaultSize,
55 long style=0, String szBackend=EmptyString,
56 Validator validator=DefaultValidator,
57 String name=MediaCtrlNameStr) -> bool
59 return _media
.MediaCtrl_CreateFromURI(*args
, **kwargs
)
61 def Create(*args
, **kwargs
):
63 Create(self, Window parent, int id=-1, String fileName=EmptyString,
64 Point pos=DefaultPosition, Size size=DefaultSize,
65 long style=0, String szBackend=EmptyString,
66 Validator validator=DefaultValidator,
67 String name=MediaCtrlNameStr) -> bool
69 return _media
.MediaCtrl_Create(*args
, **kwargs
)
71 def Play(*args
, **kwargs
):
72 """Play(self) -> bool"""
73 return _media
.MediaCtrl_Play(*args
, **kwargs
)
75 def Pause(*args
, **kwargs
):
76 """Pause(self) -> bool"""
77 return _media
.MediaCtrl_Pause(*args
, **kwargs
)
79 def Stop(*args
, **kwargs
):
80 """Stop(self) -> bool"""
81 return _media
.MediaCtrl_Stop(*args
, **kwargs
)
83 def Load(*args
, **kwargs
):
84 """Load(self, String fileName) -> bool"""
85 return _media
.MediaCtrl_Load(*args
, **kwargs
)
87 def LoadFromURI(*args
, **kwargs
):
88 """LoadFromURI(self, String location) -> bool"""
89 return _media
.MediaCtrl_LoadFromURI(*args
, **kwargs
)
91 def Loop(*args
, **kwargs
):
92 """Loop(self, bool bLoop=True)"""
93 return _media
.MediaCtrl_Loop(*args
, **kwargs
)
95 def IsLooped(*args
, **kwargs
):
96 """IsLooped(self) -> bool"""
97 return _media
.MediaCtrl_IsLooped(*args
, **kwargs
)
99 def GetState(*args
, **kwargs
):
100 """GetState(self) -> int"""
101 return _media
.MediaCtrl_GetState(*args
, **kwargs
)
103 def GetPlaybackRate(*args
, **kwargs
):
104 """GetPlaybackRate(self) -> double"""
105 return _media
.MediaCtrl_GetPlaybackRate(*args
, **kwargs
)
107 def SetPlaybackRate(*args
, **kwargs
):
108 """SetPlaybackRate(self, double dRate) -> bool"""
109 return _media
.MediaCtrl_SetPlaybackRate(*args
, **kwargs
)
111 def SetPosition(*args
, **kwargs
):
112 """SetPosition(self, wxLongLong where) -> bool"""
113 return _media
.MediaCtrl_SetPosition(*args
, **kwargs
)
115 def GetPosition(*args
, **kwargs
):
117 GetPosition(self) -> wxLongLong
119 Get the window's position.
121 return _media
.MediaCtrl_GetPosition(*args
, **kwargs
)
123 def GetDuration(*args
, **kwargs
):
124 """GetDuration(self) -> wxLongLong"""
125 return _media
.MediaCtrl_GetDuration(*args
, **kwargs
)
128 class MediaCtrlPtr(MediaCtrl
):
129 def __init__(self
, this
):
131 if not hasattr(self
,"thisown"): self
.thisown
= 0
132 self
.__class
__ = MediaCtrl
133 _media
.MediaCtrl_swigregister(MediaCtrlPtr
)
135 MediaCtrlNameStr
= cvar
.MediaCtrlNameStr
137 def PreMediaCtrl(*args
, **kwargs
):
138 """PreMediaCtrl() -> MediaCtrl"""
139 val
= _media
.new_PreMediaCtrl(*args
, **kwargs
)
143 def MediaCtrlFromURI(*args
, **kwargs
):
145 MediaCtrlFromURI(Window parent, int id=-1, String location=EmptyString,
146 Point pos=DefaultPosition, Size size=DefaultSize,
147 long style=0, String szBackend=EmptyString,
148 Validator validator=DefaultValidator,
149 String name=MediaCtrlNameStr) -> MediaCtrl
151 val
= _media
.new_MediaCtrlFromURI(*args
, **kwargs
)
153 self
._setOORInfo
(self
)
156 wxEVT_MEDIA_FINISHED
= _media
.wxEVT_MEDIA_FINISHED
157 wxEVT_MEDIA_STOP
= _media
.wxEVT_MEDIA_STOP
158 EVT_MEDIA_FINISHED
= wx
.PyEventBinder( wxEVT_MEDIA_FINISHED
, 1)
159 EVT_MEDIA_STOP
= wx
.PyEventBinder( wxEVT_MEDIA_STOP
, 1)