All pastes #82418 Raw Edit

Someone

public text v1 · immutable
·published 2006-07-08 13:41 UTC
rendered paste body
+
+       PyObject* ControlImage_SetImage(ControlImage *self, PyObject *args)
+       {
+               char *cImage;
+               if (!PyArg_ParseTuple(args, "s", &cImage)) return NULL;
+               self->strFileName = cImage;
+               PyGUILock();
+               if (self->pGUIControl)
+               {
+                       ((CGUIImage*)self->pGUIControl)->SetFileName(self->strFileName);
+               }
+               PyGUIUnlock();
+               Py_INCREF(Py_None);
+               return Py_None;
+       }