Groups
Groups
Sign in
Groups
Groups
pygooglevoice
Conversations
About
Send feedback
Help
multiple logins & phones.[0].name
3 views
Skip to first unread message
jocala
unread,
Aug 7, 2010, 9:56:37 PM
8/7/10
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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