def startAuthFlow(self, userCodeCallback): Log.w() self._ytauth = YoutubeAuth() self._ytauth.onUserCodeReady.append(userCodeCallback) self._ytauth.onCredentialsReady.append(self._onCredentialsReady) self._ytauth.startAuthFlow()