Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
789dc0a3
Commit
789dc0a3
authored
Feb 20, 2017
by
Pavel Rojtberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
python: type of initial_button_state must match format string
parent
df86f075
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
cv2.cpp
modules/python/src2/cv2.cpp
+2
-2
No files found.
modules/python/src2/cv2.cpp
View file @
789dc0a3
...
...
@@ -1362,7 +1362,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
;
...
...
@@ -1374,7 +1374,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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment