Link to the Hacker News Website

This commit is contained in:
Vikas 2013-12-01 02:58:02 +05:30
parent 61451d4c3c
commit 09482c46c4
1 changed files with 10 additions and 0 deletions

View File

@ -41,6 +41,13 @@ class HackerNewsApp:
menuSeparator = gtk.SeparatorMenuItem()
menuSeparator.show()
self.menu.append(menuSeparator)
#open hacker news
btnHnLink = gtk.MenuItem("Hacker News")
btnHnLink.show()
btnHnLink.connect("activate", self.showHnLink)
self.menu.append(btnHnLink)
btnAbout = gtk.MenuItem("About")
btnAbout.show()
@ -66,6 +73,9 @@ class HackerNewsApp:
def showAbout(self, widget):
webbrowser.open("https://github.com/captn3m0/hackertray/")
def showHnLink(self, widget):
webbrowser.open("https://news.ycombinator.com/")
''' Handler for the quit button'''
#ToDo: Handle keyboard interrupt properly
def quit(self, widget, data=None):