From 7877fa24127b04a9fd107aabcade67ad6ef98799 Mon Sep 17 00:00:00 2001 From: Anna Date: Thu, 20 May 2010 20:44:47 -0400 Subject: [PATCH] Fixed the entry not being displayed in the pin popup --- apithreads.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apithreads.py b/apithreads.py index 442ea82..b67847f 100644 --- a/apithreads.py +++ b/apithreads.py @@ -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()