You are creating the info variable in a different indentation block than the if statement. So if the right mouse button was clicked you would get an error because the info object would never be created. So you need to indent the if info.valid and info.object == female: block so it is in the same scope as the line info = viz.pick(1)
|