Fixed the entry not being displayed in the pin popup

This commit is contained in:
Anna 2010-05-20 20:44:47 -04:00
parent 716e20a9b2
commit 7877fa2412

View File

@ -22,12 +22,12 @@ class CustomApi(OAuthApi):
instantiated
'''
def __init__(self, username, access_token):
def __init__(self, access_token):
OAuthApi.__init__(self, CONSUMER_KEY, CONSUMER_SECRET, access_token)
self.lock = RLock()
self.sig_proxy = SigProxy()
self.username = username
self.username = self.GetUserInfo().screen_name
thread = GetUserLists(api=self)
thread.sig_proxy.connect('lists-ready', self.on_lists_ready)
@ -478,6 +478,7 @@ def get_access_token(window):
dialog = gtk.Dialog("Enter PIN", window, gtk.DIALOG_MODAL, (gtk.STOCK_OK, gtk.RESPONSE_OK, gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL))
entry = gtk.Entry()
dialog.vbox.pack_start(entry)
entry.show()
response = dialog.run()
dialog.hide()