[Bf-python] Image.getMode
Gergely Erdelyi
gergely.erdelyi at gmail.com
Wed Apr 20 17:55:39 CEST 2005
Hello,
On 4/20/05, Campbell Barton <cbarton at metavr.com> wrote:
> I wanted to add image.flag to accsess image reflection options etc.
> This code dosent work, no idea why.
> if( !PyArg_ParseTuple( args, "O", &arg ) )
If type of the value you are looking for is integer you could parse it
straight into an int type:
short flag;
if( !PyArg_ParseTuple( args, "h", &(self->image->flag) ) )
or even
if( !PyArg_ParseTuple( args, "h", &( flag ) ) )
If the flag is unsigned you can use "H" as format string.
Gergo
More information about the Bf-python
mailing list