Someone
public text v1 · immutable+
+ 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;
+ }