From 8383f773413cee8529ad4fdc05f092286d6dd377 Mon Sep 17 00:00:00 2001 From: mathieui Date: Thu, 30 Jun 2016 23:57:12 +0200 Subject: Use a "core" parameter for each tab object instead of a singleton fixes the circular import issue --- poezio/tabs/listtab.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'poezio/tabs/listtab.py') diff --git a/poezio/tabs/listtab.py b/poezio/tabs/listtab.py index 3e290aee..ddb8b58e 100644 --- a/poezio/tabs/listtab.py +++ b/poezio/tabs/listtab.py @@ -21,7 +21,7 @@ class ListTab(Tab): plugin_commands = {} plugin_keys = {} - def __init__(self, name, help_message, header_text, cols): + def __init__(self, core, name, help_message, header_text, cols): """Parameters: name: The name of the tab help_message: The default help message displayed instead of the @@ -31,7 +31,7 @@ class ListTab(Tab): cols: a tuple of 2-tuples. e.g. (('column1_name', number), ('column2_name', number)) """ - Tab.__init__(self) + Tab.__init__(self, core) self.state = 'normal' self.name = name columns = collections.OrderedDict() -- cgit v1.2.3