improved showing row to properly clear first.\n\nAlso, switched some form behaviour.
authorJohn Ladan <jladan@uwaterloo.ca>
Sun, 24 Jun 2012 20:57:52 +0000 (16:57 -0400)
committerJohn Ladan <jladan@uwaterloo.ca>
Sun, 24 Jun 2012 20:57:52 +0000 (16:57 -0400)
browser.py
form.py

index a644dc9..7535bc7 100644 (file)
@@ -83,6 +83,7 @@ class browserWindow:
         if self.topline+row < len(self.entries):
             entry = self.entries[self.topline+row]
             cursor = 2
+            self.w.addnstr(row+3, 1, " "*self.mx,self.mx-2)
             if self.selected[self.topline+row]:
                 self.w.addstr(row+3, 1, "*")
             else:
diff --git a/form.py b/form.py
index cd53151..59a8065 100644 (file)
--- a/form.py
+++ b/form.py
@@ -86,7 +86,7 @@ class formWindow:
         self.hl = new
         self.row = self.hl + self.top
         if new == len(self.labels):
-            self.bt+=1
+            self.bt =1
             self.bt = min(self.bt,1)
             self.row+=1
         else: