summaryrefslogtreecommitdiff
path: root/src/tabs.py
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2011-02-13 22:28:35 +0100
committerFlorent Le Coz <louiz@louiz.org>2011-02-13 22:28:35 +0100
commitac99467965ba04282b6dbc63c5c04ab91ba1b007 (patch)
tree306bf55c98f4ad80ca014f47be453f1a67fca38a /src/tabs.py
parent6ed087a65c1e7fdc020f11b5247a8feeac7b3517 (diff)
downloadpoezio-ac99467965ba04282b6dbc63c5c04ab91ba1b007.tar.gz
poezio-ac99467965ba04282b6dbc63c5c04ab91ba1b007.tar.bz2
poezio-ac99467965ba04282b6dbc63c5c04ab91ba1b007.tar.xz
poezio-ac99467965ba04282b6dbc63c5c04ab91ba1b007.zip
Make the tab collectable by remove self references when closing
them.
Diffstat (limited to 'src/tabs.py')
-rw-r--r--src/tabs.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tabs.py b/src/tabs.py
index ecb53ab9..3c91fc14 100644
--- a/src/tabs.py
+++ b/src/tabs.py
@@ -210,6 +210,9 @@ class Tab(object):
"""
pass
+ def __del__(self):
+ log.debug('Closing tab %s' % self.__class__.__name__)
+
class ChatTab(Tab):
"""
A tab containing a chat of any type.