Adds an about button. Fixes #3

This commit is contained in:
Abhay Rana 2013-11-28 17:57:25 +05:30
parent cff96cb98b
commit 35b65928f8
2 changed files with 10 additions and 1 deletions

View File

@ -40,6 +40,11 @@ class HackerNewsApp:
menuSeparator.show()
self.menu.append(menuSeparator)
btnAbout = gtk.MenuItem("About")
btnAbout.show()
btnAbout.connect("activate", self.showAbout)
self.menu.append(btnAbout)
btnRefresh = gtk.MenuItem("Refresh")
btnRefresh.show()
btnRefresh.connect("activate", self.refresh)
@ -55,6 +60,10 @@ class HackerNewsApp:
self.ind.set_menu(self.menu)
self.refresh()
'''Handle the about btn'''
def showAbout(self, widget):
webbrowser.open("https://github.com/captn3m0/hackertray/")
''' Handler for the quit button'''
#ToDo: Handle keyboard interrupt properly
def quit(self, widget, data=None):

View File

@ -1,7 +1,7 @@
from setuptools import setup
setup(name='hackertray',
version='1.2',
version='1.3',
description='Hacker News app that sits in your System Tray',
long_description='HackerTray is a simple Hacker News Linux application that lets you view top HN stories in your System Tray. It relies on appindicator, so it is not guaranteed to work on all systems. It also provides a StatusIcon fallback but it has not been tested.',
keywords='hacker news hn tray system tray icon hackertray',