From 8ae57186476d08ef55c40be2e74e9486e8abae39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20Cort=C3=A9z?= Date: Wed, 23 Mar 2016 11:35:48 -0600 Subject: [PATCH] String cleanup. Force exit if there are problems --- src/controller/mainController.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/controller/mainController.py b/src/controller/mainController.py index 70d5cfd..d68ff31 100644 --- a/src/controller/mainController.py +++ b/src/controller/mainController.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +import wx import utils import widgetUtils import messages @@ -59,7 +60,7 @@ class Controller(object): self.window.insert_buffer(audio.tab, _(u"My audios"), self.window.search("audios")) p_audio = buffers.audioBuffer(parent=self.window.tb, name="popular_audio", composefunc="compose_audio", session=self.session, endpoint="getPopular", parent_endpoint="audio", full_list=True) self.buffers.append(p_audio) - self.window.insert_buffer(p_audio.tab, _(u"Popular audios"), self.window.search("audios")) + self.window.insert_buffer(p_audio.tab, _(u"Populars"), self.window.search("audios")) r_audio = buffers.audioBuffer(parent=self.window.tb, name="recommended_audio", composefunc="compose_audio", session=self.session, endpoint="getRecommendations", parent_endpoint="audio", full_list=True) self.buffers.append(r_audio) self.window.insert_buffer(r_audio.tab, _(u"Recommendations"), self.window.search("audios")) @@ -121,7 +122,7 @@ class Controller(object): def exit(self, *args, **kwargs): self.disconnect_events() self.window.Destroy() -# wx.GetApp().ExitMainloop() + wx.GetApp().ExitMainloop() def update_buffer(self, *args, **kwargs): b = self.get_current_buffer()