summaryrefslogtreecommitdiffstats
path: root/Mac/Modules/qt/Qtmodule.c
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1998-07-22 13:37:37 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>1998-07-22 13:37:37 (GMT)
commitd81fc3cd64ff77e9c362b5a5fa09db21a089b691 (patch)
tree9389fdb2ea09fc10707cfd7b832a675fa0b86cfc /Mac/Modules/qt/Qtmodule.c
parent2116bcaec06230d571e8cdc7c9564fdeba65c03d (diff)
downloadcpython-d81fc3cd64ff77e9c362b5a5fa09db21a089b691.zip
cpython-d81fc3cd64ff77e9c362b5a5fa09db21a089b691.tar.gz
cpython-d81fc3cd64ff77e9c362b5a5fa09db21a089b691.tar.bz2
- Added a function MoviesTask, which is the same as the method but
with a null movie (giving time to all active movies) - Made the graphics world parameter to SetMovieGWorld optional.
Diffstat (limited to 'Mac/Modules/qt/Qtmodule.c')
-rw-r--r--Mac/Modules/qt/Qtmodule.c22
1 files changed, 20 insertions, 2 deletions
diff --git a/Mac/Modules/qt/Qtmodule.c b/Mac/Modules/qt/Qtmodule.c
index 51f1227..540915e 100644
--- a/Mac/Modules/qt/Qtmodule.c
+++ b/Mac/Modules/qt/Qtmodule.c
@@ -4300,7 +4300,7 @@ static PyObject *MovieObj_GetMovieGWorld(_self, _args)
&gdh);
_res = Py_BuildValue("O&O&",
GrafObj_New, port,
- ResObj_New, gdh);
+ OptResObj_New, gdh);
return _res;
}
@@ -4313,7 +4313,7 @@ static PyObject *MovieObj_SetMovieGWorld(_self, _args)
GDHandle gdh;
if (!PyArg_ParseTuple(_args, "O&O&",
GrafObj_Convert, &port,
- ResObj_Convert, &gdh))
+ OptResObj_Convert, &gdh))
return NULL;
SetMovieGWorld(_self->ob_itself,
port,
@@ -7650,6 +7650,22 @@ static PyObject *Qt_DragAlignedWindow(_self, _args)
return _res;
}
+static PyObject *Qt_MoviesTask(_self, _args)
+ PyObject *_self;
+ PyObject *_args;
+{
+ PyObject *_res = NULL;
+ long maxMilliSecToUse;
+ if (!PyArg_ParseTuple(_args, "l",
+ &maxMilliSecToUse))
+ return NULL;
+ MoviesTask((Movie)0,
+ maxMilliSecToUse);
+ Py_INCREF(Py_None);
+ _res = Py_None;
+ return _res;
+}
+
static PyMethodDef Qt_methods[] = {
{"EnterMovies", (PyCFunction)Qt_EnterMovies, 1,
"() -> None"},
@@ -7787,6 +7803,8 @@ static PyMethodDef Qt_methods[] = {
"(WindowPtr wp, Boolean front) -> None"},
{"DragAlignedWindow", (PyCFunction)Qt_DragAlignedWindow, 1,
"(WindowPtr wp, Point startPt, Rect boundsRect) -> None"},
+ {"MoviesTask", (PyCFunction)Qt_MoviesTask, 1,
+ "(long maxMilliSecToUse) -> None"},
{NULL, NULL, 0}
};