Beispiel #1
0
 def follow(self, event):
     t = buffer.get_focused_tweet()
     u = buffer.user(t)
     tw = ask.ask(message="Follow who?",
                  default_value=u)  #not works correctly
     print(tw)
     twitter.Follow(tw)
Beispiel #2
0
 def reply(self, event):
     if self.focused == "Direct Messages":
         self.message(0)
     else:
         f = buffer.get_focused_tweet()
         u = buffer.user(f)
         t = tweet.TweetGui("@" + u + " ", f['id_str'])
         t.Show()
Beispiel #3
0
 def like(self, event):
     f = buffer.get_focused_tweet()
     if f['favorited'] == True:
         twitter.Unlike(f['id_str'])
     elif f['favorited'] == False:
         twitter.Like(f['id_str'])
     stat = twitter.twitter.lookup_status(id=f['id_str'])
     buffer.update_buffer_item(self.focused, self.tweets.GetSelection(),
                               stat[0])
Beispiel #4
0
 def message(self, event):
     f = buffer.get_focused_tweet()
     u = buffer.user(f)
     t = tweet.DMGui(u)
     t.Show()
Beispiel #5
0
 def quote(self, event):
     f = buffer.get_focused_tweet()
     t = tweet.QuoteGui(f['id_str'])
     t.Show()
Beispiel #6
0
 def retweet(self, event):
     f = buffer.get_focused_tweet()
     twitter.Retweet(f['id_str'])
Beispiel #7
0
 def unfollow(self, id):
     t = buffer.get_focused_tweet()
     u = buffer.user(t)
     tw = ask.ask(message="Unfollow who?", default_value=u)
     twitter.Unfollow(tw)
Beispiel #8
0
 def reply_all(self, event):
     f = buffer.get_focused_tweet()
     u = buffer.get_users_in_tweet(f)
     t = tweet.TweetGui(u + " ", f['id_str'])
     t.Show()