diff -r b055add74b18 -r ce2e67e7bbb8 tuikit/core/widget.py --- a/tuikit/core/widget.py Wed Sep 03 19:14:43 2014 +0200 +++ b/tuikit/core/widget.py Wed Sep 03 19:17:04 2014 +0200 @@ -40,9 +40,9 @@ self.sizemax = Size(None, None) #: Cursor is position where text input will occur. - #: It is displayed on screen if widget is active. - #: None means no cursor (hidden). - self._cursor = None + self._cursor = Point() + #: Cursor is displayed on screen only if the widget is focused. + self._cursor_visible = False #: Hidden widget does not affect layout. self.hidden = False @@ -100,8 +100,11 @@ @property def cursor(self): - if self._cursor is not None: - return Point(self._cursor) + return self._cursor + + @property + def cursor_visible(self): + return self._cursor_visible ## events ##