summaryrefslogtreecommitdiff
path: root/src/windows.py
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2011-06-21 02:01:23 +0200
committerFlorent Le Coz <louiz@louiz.org>2011-06-21 02:01:23 +0200
commit0fa3cf756a50dffe01e46c725245445dc1cfd39b (patch)
treed8443b51a8fe771500de361417c58208f930005c /src/windows.py
parent06f4dd783ed946168be00abdfdf4ffc127ba21e5 (diff)
downloadpoezio-0fa3cf756a50dffe01e46c725245445dc1cfd39b.tar.gz
poezio-0fa3cf756a50dffe01e46c725245445dc1cfd39b.tar.bz2
poezio-0fa3cf756a50dffe01e46c725245445dc1cfd39b.tar.xz
poezio-0fa3cf756a50dffe01e46c725245445dc1cfd39b.zip
Reset the cursor position from the item list when node changes
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