@@ -37,7 +37,7 @@ class SPythonWidget : public SCompoundWidget
3737 return FReply::Unhandled ();
3838
3939 PyObject *py_callable_on_key_char = PyObject_GetAttrString (self, (char *)" on_key_char" );
40- if (!PyCallable_Check (py_callable_on_key_char))
40+ if (!PyCalllable_Check_Extended (py_callable_on_key_char))
4141 {
4242 UE_LOG (LogPython, Error, TEXT (" on_key_char is not a callable" ));
4343 return FReply::Unhandled ();
@@ -67,7 +67,7 @@ class SPythonWidget : public SCompoundWidget
6767 return FReply::Unhandled ();
6868
6969 PyObject *py_callable_on_key_down = PyObject_GetAttrString (self, (char *)" on_key_down" );
70- if (!PyCallable_Check (py_callable_on_key_down))
70+ if (!PyCalllable_Check_Extended (py_callable_on_key_down))
7171 {
7272 UE_LOG (LogPython, Error, TEXT (" on_key_down is not a callable" ));
7373 return FReply::Unhandled ();
@@ -97,7 +97,7 @@ class SPythonWidget : public SCompoundWidget
9797 return FReply::Unhandled ();
9898
9999 PyObject *py_callable_on_mouse_move = PyObject_GetAttrString (self, (char *)" on_mouse_move" );
100- if (!PyCallable_Check (py_callable_on_mouse_move))
100+ if (!PyCalllable_Check_Extended (py_callable_on_mouse_move))
101101 {
102102 UE_LOG (LogPython, Error, TEXT (" on_mouse_move is not a callable" ));
103103 return FReply::Unhandled ();
@@ -127,7 +127,7 @@ class SPythonWidget : public SCompoundWidget
127127 return FReply::Unhandled ();
128128
129129 PyObject *py_callable_on_mouse_wheel = PyObject_GetAttrString (self, (char *)" on_mouse_wheel" );
130- if (!PyCallable_Check (py_callable_on_mouse_wheel))
130+ if (!PyCalllable_Check_Extended (py_callable_on_mouse_wheel))
131131 {
132132 UE_LOG (LogPython, Error, TEXT (" on_mouse_wheel is not a callable" ));
133133 return FReply::Unhandled ();
@@ -157,7 +157,7 @@ class SPythonWidget : public SCompoundWidget
157157 return FReply::Unhandled ();
158158
159159 PyObject *py_callable_on_mouse_button_down = PyObject_GetAttrString (self, (char *)" on_mouse_button_down" );
160- if (!PyCallable_Check (py_callable_on_mouse_button_down))
160+ if (!PyCalllable_Check_Extended (py_callable_on_mouse_button_down))
161161 {
162162 UE_LOG (LogPython, Error, TEXT (" on_mouse_button_down is not a callable" ));
163163 return FReply::Unhandled ();
@@ -187,7 +187,7 @@ class SPythonWidget : public SCompoundWidget
187187 return FReply::Unhandled ();
188188
189189 PyObject *py_callable_on_mouse_button_up = PyObject_GetAttrString (self, (char *)" on_mouse_button_up" );
190- if (!PyCallable_Check (py_callable_on_mouse_button_up))
190+ if (!PyCalllable_Check_Extended (py_callable_on_mouse_button_up))
191191 {
192192 UE_LOG (LogPython, Error, TEXT (" on_mouse_button_up is not a callable" ));
193193 return FReply::Unhandled ();
@@ -226,7 +226,7 @@ class SPythonWidget : public SCompoundWidget
226226 return MaxLayer;
227227
228228 PyObject *py_callable_paint = PyObject_GetAttrString (self, (char *)" paint" );
229- if (!PyCallable_Check (py_callable_paint))
229+ if (!PyCalllable_Check_Extended (py_callable_paint))
230230 {
231231 UE_LOG (LogPython, Error, TEXT (" paint is not a callable" ));
232232 return MaxLayer;
@@ -257,7 +257,7 @@ class SPythonWidget : public SCompoundWidget
257257 return ;
258258
259259 PyObject *py_callable_tick = PyObject_GetAttrString (self, (char *)" tick" );
260- if (!PyCallable_Check (py_callable_tick))
260+ if (!PyCalllable_Check_Extended (py_callable_tick))
261261 {
262262 UE_LOG (LogPython, Error, TEXT (" tick is not a callable" ));
263263 return ;
0 commit comments