def bind_on_symbols(self): """ Since the camera doesn't seem to stop properly, we always bind/unbind on_pre_enter/on_pre_leave. """ self.zbarcam.bind(symbols=self.on_symbols)