Fixed the entry not being displayed in the pin popup
This commit is contained in:
parent
716e20a9b2
commit
7877fa2412
|
@ -22,12 +22,12 @@ class CustomApi(OAuthApi):
|
||||||
instantiated
|
instantiated
|
||||||
'''
|
'''
|
||||||
|
|
||||||
def __init__(self, username, access_token):
|
def __init__(self, access_token):
|
||||||
OAuthApi.__init__(self, CONSUMER_KEY, CONSUMER_SECRET, access_token)
|
OAuthApi.__init__(self, CONSUMER_KEY, CONSUMER_SECRET, access_token)
|
||||||
self.lock = RLock()
|
self.lock = RLock()
|
||||||
self.sig_proxy = SigProxy()
|
self.sig_proxy = SigProxy()
|
||||||
|
|
||||||
self.username = username
|
self.username = self.GetUserInfo().screen_name
|
||||||
|
|
||||||
thread = GetUserLists(api=self)
|
thread = GetUserLists(api=self)
|
||||||
thread.sig_proxy.connect('lists-ready', self.on_lists_ready)
|
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))
|
dialog = gtk.Dialog("Enter PIN", window, gtk.DIALOG_MODAL, (gtk.STOCK_OK, gtk.RESPONSE_OK, gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL))
|
||||||
entry = gtk.Entry()
|
entry = gtk.Entry()
|
||||||
dialog.vbox.pack_start(entry)
|
dialog.vbox.pack_start(entry)
|
||||||
|
entry.show()
|
||||||
response = dialog.run()
|
response = dialog.run()
|
||||||
dialog.hide()
|
dialog.hide()
|
||||||
|
|
||||||
|
|
Reference in New Issue
Block a user