summaryrefslogtreecommitdiff
path: root/src/windows.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/windows.py')
-rw-r--r--src/windows.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/windows.py b/src/windows.py
index 512b6f01..9f6fc676 100644
--- a/src/windows.py
+++ b/src/windows.py
@@ -1512,6 +1512,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