From a7ef572d054ef2b5e2d8101ff5bf98535cbbe6e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20Cort=C3=A9z?= Date: Mon, 8 Dec 2014 12:46:29 -0600 Subject: [PATCH] Now, TWBlue does not block the system when any session is closed or turned off --- src/gui/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/main.py b/src/gui/main.py index f8939233..f40630c7 100644 --- a/src/gui/main.py +++ b/src/gui/main.py @@ -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)