Update some info when focusing an item in the list of posts

This commit is contained in:
2016-06-05 14:15:40 -05:00
parent 24140f9e42
commit f30a099bf4
3 changed files with 31 additions and 2 deletions

View File

@@ -43,6 +43,9 @@ class homeTab(wx.Panel):
if ev.GetKeyCode() == wx.WXK_WINDOWS_MENU:
pub.sendMessage("show-menu", position=self.results.list.GetPosition())
def set_focus_function(self, focus_function):
self.list.list.Bind(wx.EVT_LIST_ITEM_FOCUSED, focus_function)
class feedTab(homeTab):
def __init__(self, parent):
super(feedTab, self).__init__(parent=parent)