0
我有以下代碼:如何使用wxpython創建提示?
try:
redirect_url = self.auth.get_authorization_url()
webbrowser.open_new(redirect_url)
except tweepy.TweepError:
print 'Error! Failed to get request token.'
verifier=raw_input("Enter verification code: ")
try:
self.auth.get_access_token(verifier)
print "Access granted"
self.__key,self.__secret = self.auth.access_token.key,self.auth.access_token.secret
self.set_tokens(self.__key,self.__secret)
print self.__key, self.__secret
except tweepy.TweepError:
print "Error! Failed to get access token!"
如何停止的第二次嘗試,除了從實施wx.Frame當執行塊。例如所以它不會繼續,直到一個按鈕被按下?