tuikit/editfield.py
changeset 30 05500124d7fb
parent 18 e6c3a5ee91aa
child 34 e3beacd5e536
--- a/tuikit/editfield.py	Mon Feb 20 18:15:13 2012 +0100
+++ b/tuikit/editfield.py	Thu Dec 13 10:01:32 2012 +0100
@@ -30,6 +30,7 @@
 
 
     def on_draw(self, screen, x, y):
+        screen.pushcolor('normal')
         # draw value
         val = self.value + ' ' * self.tw         # add spaces to fill rest of field
         val = val[self.ofs : self.ofs + self.tw]  # cut value - begin from ofs, limit to tw chars
@@ -47,7 +48,7 @@
         screen.putch(x + self.width-1, y, c)
 
         self.cursor = (1 + self.pos - self.ofs, 0)
-
+        screen.popcolor()
 
     def on_keypress(self, keyname, char):
         handled = False