In Examples/User Interface/Calculator.py the button_tapped() function gets the values of label1 and label2.
For your code, you will need to use int(sender.superview['label1']) to get an integer.
Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.