tuikit/editfield.py
changeset 62 2f61931520c9
parent 45 43b2279b06e1
--- a/tuikit/editfield.py	Thu Jan 10 00:03:34 2013 +0100
+++ b/tuikit/editfield.py	Fri Jan 18 22:36:50 2013 +0100
@@ -6,8 +6,9 @@
 
 
 class EditField(Widget):
-    def __init__(self, width=10, value=''):
-        Widget.__init__(self, width, 1)
+    def __init__(self, value=''):
+        Widget.__init__(self)
+        self._default_size.update(10, 1)
 
         self.allow_focus = True