multiple logins & phones.[0].name

3 views
Skip to first unread message

jocala

unread,
Aug 7, 2010, 9:56:37 PM8/7/10
to pygooglevoice
I'm having some difficulty doing sequential logins.

if voice.login():
voice.logout() #log out existing session if one exists

#combobox holds two phone numbers

if self.combobox.GetValue() == "555-1211":
voice.login("user1","111222333")
print "user1" #correctly prints
self.phone0.SetLabel(voice.phones[0].name)
print voice.phones[0].name #never changes
else:
voice.login("user2","111222333")
print "user2" #correctly prints
self.phone0.SetLabel(voice.phones[0].name)
print voice.phones[0].name #never changes

In the fragment above, voice.phones[0].name never changes from the
first assigned value.
Reply all
Reply to author
Forward
0 new messages