Now, TWBlue does not block the system when any session is closed or turned off

This commit is contained in:
Manuel Cortez 2014-12-08 12:46:29 -06:00
parent 403784b77a
commit a7ef572d05

View File

@ -219,8 +219,8 @@ class mainFrame(wx.Frame):
log.debug("Getting Twitter's Rest API...")
self.twitter = twitter.twitter.twitter()
super(mainFrame, self).__init__(None, -1, "TW Blue", size=(1600, 1600))
self.Bind(wx.EVT_QUERY_END_SESSION, self.exit)
self.Bind(wx.EVT_END_SESSION, self.exit)
wx.GetApp().Bind(wx.EVT_QUERY_END_SESSION, self.exit)
wx.GetApp().Bind(wx.EVT_END_SESSION, self.exit)
log.debug(u"Creating the system tray icon... ")
self.sysTray=sysTrayIcon.SysTrayIcon(self)
panel = wx.Panel(self)