From e970fbed80f66e7689c8e959962275568ecfb571 Mon Sep 17 00:00:00 2001 From: ingvar1995 Date: Thu, 28 Jul 2016 23:49:43 +0300 Subject: [PATCH] todo --- tests/travis.py | 2 +- toxygen/profile.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/travis.py b/tests/travis.py index fe72338..474d961 100644 --- a/tests/travis.py +++ b/tests/travis.py @@ -1,4 +1,4 @@ class TestToxygen: def test_main(self): - import toxygen.main \ No newline at end of file + import toxygen.main diff --git a/toxygen/profile.py b/toxygen/profile.py index 294427a..87727cf 100644 --- a/toxygen/profile.py +++ b/toxygen/profile.py @@ -1193,6 +1193,7 @@ class Profile(contact.Contact, Singleton): self._messages.scrollToBottom() else: friend.actions = True + # TODO: dict of widgets self._call_widget = avwidgets.IncomingCallWidget(friend_number, text, friend.name) self._call_widget.set_pixmap(friend.get_pixmap()) self._call_widget.show() @@ -1219,6 +1220,7 @@ class Profile(contact.Contact, Singleton): self._screen.call_finished() self._call.finish_call(friend_number, by_friend) # finish or decline call if hasattr(self, '_call_widget'): + self._call_widget.close() del self._call_widget friend = self.get_friend_by_number(friend_number) friend.append_message(InfoMessage(text, time.time()))