Adds tooltips to each menu item containing URL, timestamp and user info

pull/26/head
Abhay Rana 8 years ago
parent c4b195af3d
commit d9e6e51722
  1. 2
      hackertray/__init__.py

@ -151,6 +151,8 @@ class HackerNewsApp:
i.set_active(visited)
i.url = item['url']
tooltip = "{url}\nPosted by {user} {timeago}".format(url=item['url'], user=item['user'], timeago=item['time_ago'])
i.set_tooltip_text(tooltip)
i.signal_id = i.connect('activate', self.open)
i.hn_id = item['id']
i.item_id = item['id']

Loading…
Cancel
Save