def destroy ( self ) : if self . widget : self . set_active ( False ) super ( AndroidBarcodeView , self ) . destroy ( )
python how to disconnect signal from a widget
Cleanup the activty lifecycle listener
def destroy(self):
        """ Cleanup the activty lifecycle listener """
        if self.widget:
            self.set_active(False)
        super(AndroidBarcodeView, self).destroy()