summaryrefslogtreecommitdiff
path: root/src/windows.py
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2011-07-04 22:44:26 +0200
committerFlorent Le Coz <louiz@louiz.org>2011-07-04 22:44:26 +0200
commite24d513c236b30eda0438a3077db79fb26f84825 (patch)
tree44694d0ea51a07cfde70d3de9e65bf24fdf7d749 /src/windows.py
parent445a25e459f74eb4f492858fab652938f2056bf0 (diff)
parent76cacb32a6a13fbd69593fffba011c97bcf8825e (diff)
downloadpoezio-e24d513c236b30eda0438a3077db79fb26f84825.tar.gz
poezio-e24d513c236b30eda0438a3077db79fb26f84825.tar.bz2
poezio-e24d513c236b30eda0438a3077db79fb26f84825.tar.xz
poezio-e24d513c236b30eda0438a3077db79fb26f84825.zip
Merge pubsub branch to default
Diffstat (limited to 'src/windows.py')
-rw-r--r--src/windows.py15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/windows.py b/src/windows.py
index ef2a7569..9294988b 100644
--- a/src/windows.py
+++ b/src/windows.py
@@ -1514,6 +1514,14 @@ class ListWin(Win):
self._selected_row = 0
self._starting_pos = 0 # The column number from which we start the refresh
+ def empty(self):
+ """
+ emtpy the list and reset some important values as well
+ """
+ self.lines = []
+ self._selected_row = 0
+ self._starting_pos = 0
+
def resize_columns(self, dic):
"""
Resize the width of the columns
@@ -1605,6 +1613,9 @@ class ColumnHeaderWin(Win):
def resize_columns(self, dic):
self._columns_sizes = dic
+ def get_columns(self):
+ return self._columns
+
def refresh(self):
log.debug('Refresh: %s'%self.__class__.__name__)
with g_lock:
@@ -1624,10 +1635,6 @@ class SimpleTextWin(Win):
self._text = text
self.built_lines = []
- def resize(self, height, width, y, x, stdscr):
- self._resize(height, width, y, x, stdscr)
- self.rebuild_text()
-
def rebuild_text(self):
"""
Transform the text in lines than can then be