Describe the bug
Trying to concatenate a string with event_data.widget with the + operator, as in the example:
print("widget clicked = " + event_data.widget)
raises the error:
print("widget clicked = " + event_data.widget)
TypeError: can only concatenate str (not "App") to str
Describe the bug Trying to concatenate a string with event_data.widget with the + operator, as in the example:
print("widget clicked = " + event_data.widget)
raises the error: print("widget clicked = " + event_data.widget) TypeError: can only concatenate str (not "App") to str
To Reproduce
Expected behavior The output: widget clicked = [App] object mouse position = 26 . 35
System information:
Additional context Replacing '+' with ',' ('plus' with 'comma') solves the problem, like so: