mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2024-11-23 11:48:07 -06:00
TWBlue shows followers and friends in realtime again
This commit is contained in:
parent
d8149a4c96
commit
aa58e61e5e
@ -68,7 +68,6 @@ class audioDialog(wx.Dialog):
|
|||||||
services = []
|
services = []
|
||||||
if config.main["services"]["dropbox_token"] != "":
|
if config.main["services"]["dropbox_token"] != "":
|
||||||
services.append("Dropbox")
|
services.append("Dropbox")
|
||||||
services.append("TwUp")
|
|
||||||
services.append("SNDUp")
|
services.append("SNDUp")
|
||||||
return services
|
return services
|
||||||
|
|
||||||
|
@ -41,8 +41,8 @@ class peoplePanel(basePanel):
|
|||||||
self.list = widgets.list(self, _(u"User"), style=wx.LC_REPORT|wx.LC_SINGLE_SEL, size=(800, 800))
|
self.list = widgets.list(self, _(u"User"), style=wx.LC_REPORT|wx.LC_SINGLE_SEL, size=(800, 800))
|
||||||
|
|
||||||
def __init__(self, parent, window, name_buffer, function, argumento=None, sound="", timeline=False):
|
def __init__(self, parent, window, name_buffer, function, argumento=None, sound="", timeline=False):
|
||||||
self.type = "people"
|
|
||||||
super(peoplePanel, self).__init__(parent, window, name_buffer, function, argumento=argumento, sound=sound)
|
super(peoplePanel, self).__init__(parent, window, name_buffer, function, argumento=argumento, sound=sound)
|
||||||
|
self.type = "people"
|
||||||
self.responseBtn.SetLabel(_(u"Mention"))
|
self.responseBtn.SetLabel(_(u"Mention"))
|
||||||
self.retweetBtn.Disable()
|
self.retweetBtn.Disable()
|
||||||
self.compose_function = twitter.compose.compose_followers_list
|
self.compose_function = twitter.compose.compose_followers_list
|
||||||
|
@ -71,12 +71,11 @@ class streamer(TwythonStreamer):
|
|||||||
wx.PostEvent(self.parent.search_buffer("buffer", "direct_messages"), tweet_event)
|
wx.PostEvent(self.parent.search_buffer("buffer", "direct_messages"), tweet_event)
|
||||||
|
|
||||||
def check_follower(self, data):
|
def check_follower(self, data):
|
||||||
if data["target"]["screen_name"] == self.db.settings["user_name"]:
|
if data["target"]["screen_name"] == self.db.settings["user_name"] and config.main["other_buffers"]["show_followers"] == True:
|
||||||
if config.main["other_buffers"]["show_followers"] == True:
|
|
||||||
tweet_event = event.event(event.EVT_OBJECT, 1)
|
tweet_event = event.event(event.EVT_OBJECT, 1)
|
||||||
tweet_event.SetItem(data["source"])
|
tweet_event.SetItem(data["source"])
|
||||||
wx.PostEvent(self.parent.search_buffer("people", "followers"), tweet_event)
|
wx.PostEvent(self.parent.search_buffer("people", "followers"), tweet_event)
|
||||||
elif data["source"]["screen_name"] == self.db.settings["user_name"] and config.main["other_buffers"]["show_friends"] == True:
|
elif data["source"]["screen_name"] == self.db.settings["user_name"]:
|
||||||
tweet_event = event.event(event.EVT_OBJECT, 1)
|
tweet_event = event.event(event.EVT_OBJECT, 1)
|
||||||
tweet_event.SetItem(data["target"])
|
tweet_event.SetItem(data["target"])
|
||||||
wx.PostEvent(self.parent.search_buffer("people", "friends"), tweet_event)
|
wx.PostEvent(self.parent.search_buffer("people", "friends"), tweet_event)
|
||||||
@ -119,7 +118,7 @@ class streamer(TwythonStreamer):
|
|||||||
self.check_favs(data)
|
self.check_favs(data)
|
||||||
elif "unfavorite" == data["event"] and config.main["other_buffers"]["show_favourites"] == True:
|
elif "unfavorite" == data["event"] and config.main["other_buffers"]["show_favourites"] == True:
|
||||||
self.remove_fav(data)
|
self.remove_fav(data)
|
||||||
elif "follow" == data["event"] and config.main["other_buffers"]["show_followers"] == True:
|
elif "follow" == data["event"]:
|
||||||
self.check_follower(data)
|
self.check_follower(data)
|
||||||
elif "unfollow" == data["event"] and config.main["other_buffers"]["show_followers"] == True:
|
elif "unfollow" == data["event"] and config.main["other_buffers"]["show_followers"] == True:
|
||||||
self.remove_friend(data)
|
self.remove_friend(data)
|
||||||
|
Loading…
Reference in New Issue
Block a user