def setup_follow_button(self, user):
    if sessions.current_session.is_current_user(user['screen_name']):
        return
    if (not user['following']):
        self.follow_button = wx.Button(parent=self.pane, label=(_('Follow %s') % user['name']))
        self.follow_button.Bind(wx.EVT_BUTTON, self.follow)
    else:
        self.follow_button = wx.Button(parent=self.pane, label=(_('Unfollow %s') % user['name']))
        self.follow_button.Bind(wx.EVT_BUTTON, self.unfollow)
    self.follow_button.SetSizerProps(expand=True)
def setup_follow_button(self, user):
    if sessions.current_session.is_current_user(user['screen_name']):
        return
    if (not user['following']):
        self.follow_button = wx.Button(parent=self.pane, label=(_('Follow %s') % user['name']))
        self.follow_button.Bind(wx.EVT_BUTTON, self.follow)
    else:
        self.follow_button = wx.Button(parent=self.pane, label=(_('Unfollow %s') % user['name']))
        self.follow_button.Bind(wx.EVT_BUTTON, self.unfollow)
    self.follow_button.SetSizerProps(expand=True)