tuikit/treeview.py
changeset 77 fc1989059e19
parent 74 23767a33a781
child 102 29a8a26a721f
--- a/tuikit/treeview.py	Sat Feb 02 12:54:27 2013 +0100
+++ b/tuikit/treeview.py	Sun Feb 03 16:38:41 2013 +0100
@@ -251,6 +251,7 @@
 
     def on_draw(self, ev):
         ev.driver.pushcolor('normal')
+        ev.driver.fill_clip()
 
         lines = 0  # bit array, bit 0 - draw vertical line on first column, etc.
         y = ev.y
@@ -292,8 +293,8 @@
             'right': self.move_right}
         if ev.keyname in key_map:
             key_map[ev.keyname]()
+            self.redraw()
             return True
-        self.redraw()
 
     def prev_node(self, node):
         # previous sibling