def on_unfollow_th(self, screen_name): try: th = Thread(target=self.on_unfollow, args=(screen_name,)) th.callback = self.on_unfollow_cb() th.start() except Thread: print("Error: unable to start unfollow thread")
def on_unfollow_th(self, screen_name): try: th = Thread(target=self.on_unfollow, args=(screen_name, )) th.callback = self.on_unfollow_cb() th.start() except Thread: print("Error: unable to start unfollow thread")
def on_retweet(self, tweetbox, tweet_id): try: retweet_th = Thread(target=self.twitter.retweet(tweet_id)) retweet_th.callback = tweetbox.on_retweet_cb() retweet_th.start() except Thread: print("Error: unable to start thread")
def on_dm_destroy(self, tweetbox, dm_id): try: dm_destroy_th = Thread(target=self.twitter.destroy_dm(dm_id)) dm_destroy_th.callback = tweetbox.on_dm_destroy_cb() dm_destroy_th.start() except Thread: print("Error: unable to start thread")
def on_dm_destroy(self, tweetbox, dm_id): try: dm_destroy_th = Thread( target=self.twitter.destroy_dm(dm_id)) dm_destroy_th.callback = tweetbox.on_dm_destroy_cb() dm_destroy_th.start() except Thread: print("Error: unable to start thread")
def on_tweet_favorited(self, tweetbox, tweet_id, favorite): try: tweet_favorited_th = Thread( target=self.twitter.create_favorite(tweet_id, favorite)) tweet_favorited_th.callback = tweetbox.on_favorite_cb() tweet_favorited_th.start() except Thread: print("Error: unable to start thread")