First steps toward moving the follow, at, and verified info into a box at the top of the pane

This commit is contained in:
Anna
2010-05-20 00:04:44 -04:00
parent eccfe997d9
commit 22067b4ad2
3 changed files with 164 additions and 94 deletions

View File

@ -209,13 +209,13 @@ class GetFollowing(ApiThread):
except (HTTPError, URLError):
following = False
self.pane.set_following(following)
self.pane.user_box.set_following(following)
### End class GetFollowing
class GetVerified(ApiThread):
class GetUserInfo(ApiThread):
def __init__(self, api, pane, user):
ApiThread.__init__(self, api)
self.pane = pane
@ -228,13 +228,17 @@ class GetVerified(ApiThread):
try:
with self.api.lock:
user = self.api.GetUser(screen_name)
verified = user.verified
except (HTTPError, URLError):
verified = False
self.pane.set_verified(verified)
gtk.gdk.threads_enter()
try:
self.pane.user_box.update_info(user)
finally:
gtk.gdk.threads_leave()
### End class GetVerified
### End class GetUserInfo
class GetUserLists(ApiThread):