Skip to content

Commit

Permalink
Merge pull request opencv#8231 from paroj:pytype
Browse files Browse the repository at this point in the history
  • Loading branch information
mshabunin committed Feb 27, 2017
2 parents dcbed8d + 789dc0a commit 220d1f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/python/src2/cv2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1367,7 +1367,7 @@ static PyObject *pycvCreateButton(PyObject*, PyObject *args, PyObject *kw)
PyObject *userdata = NULL;
char* button_name;
int button_type = 0;
bool initial_button_state = false;
int initial_button_state = 0;

if (!PyArg_ParseTupleAndKeywords(args, kw, "sO|Oii", (char**)keywords, &button_name, &on_change, &userdata, &button_type, &initial_button_state))
return NULL;
Expand All @@ -1379,7 +1379,7 @@ static PyObject *pycvCreateButton(PyObject*, PyObject *args, PyObject *kw)
userdata = Py_None;
}

ERRWRAP2(createButton(button_name, OnButtonChange, Py_BuildValue("OO", on_change, userdata), button_type, initial_button_state));
ERRWRAP2(createButton(button_name, OnButtonChange, Py_BuildValue("OO", on_change, userdata), button_type, initial_button_state != 0));
Py_RETURN_NONE;
}
#endif
Expand Down

0 comments on commit 220d1f0

Please sign in to comment.