+ if (!(px && py && pwidth && pheight && pfilled_perc))
+ {
+ eDebug("eListboxPythonMultiContent received too small tuple (must be (TYPE_PROGRESS, x, y, width, height, filled percent [,border width, foreColor, backColor, backColorSelected]))");
+ goto error_out;
+ }
+ }
+ else
+ {
+ ppixmap = PyTuple_GET_ITEM(item, idx++);
+ if (ppixmap == Py_None)
+ continue;
+ if (!(px && py && pwidth && pheight && pfilled_perc, ppixmap))
+ {
+ eDebug("eListboxPythonMultiContent received too small tuple (must be (TYPE_PROGRESS_PIXMAP, x, y, width, height, filled percent, pixmap, [,border width, foreColor, backColor, backColorSelected]))");
+ goto error_out;
+ }
+ }
+
+ if (size > idx)
+ {
+ pborderWidth = PyTuple_GET_ITEM(item, idx++);
+ if (pborderWidth == Py_None)
+ pborderWidth = ePyObject();
+ }
+ if (size > idx)
+ {
+ pforeColor = PyTuple_GET_ITEM(item, idx++);
+ if (pforeColor == Py_None)
+ pforeColor = ePyObject();
+ }
+ if (size > idx)
+ {
+ pforeColorSelected = PyTuple_GET_ITEM(item, idx++);
+ if (pforeColorSelected == Py_None)
+ pforeColorSelected=ePyObject();
+ }
+ if (size > idx)
+ {
+ pbackColor = PyTuple_GET_ITEM(item, idx++);
+ if (pbackColor == Py_None)
+ pbackColor=ePyObject();
+ }
+ if (size > idx)
+ {
+ pbackColorSelected = PyTuple_GET_ITEM(item, idx++);
+ if (pbackColorSelected == Py_None)
+ pbackColorSelected=ePyObject();