Mercurial > urwid-satext
comparison urwid_satext/sat_widgets.py @ 44:9fc778aab7f5
fix for urwid 1.0.0
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 02 Oct 2011 18:47:17 +0200 |
parents | 1aeb3540aa49 |
children | d34f2b0f68d3 |
comparison
equal
deleted
inserted
replaced
43:e49d8f289a73 | 44:9fc778aab7f5 |
---|---|
18 You should have received a copy of the GNU General Public License | 18 You should have received a copy of the GNU General Public License |
19 along with this program. If not, see <http://www.gnu.org/licenses/>. | 19 along with this program. If not, see <http://www.gnu.org/licenses/>. |
20 """ | 20 """ |
21 | 21 |
22 import urwid | 22 import urwid |
23 from urwid.escape import utf8decode | |
24 from logging import debug, info, warning, error | 23 from logging import debug, info, warning, error |
24 import encodings | |
25 utf8decode = lambda s: encodings.codecs.utf_8_decode(s)[0] | |
25 | 26 |
26 class Password(urwid.Edit): | 27 class Password(urwid.Edit): |
27 """Edit box which doesn't show what is entered (show '*' or other char instead)""" | 28 """Edit box which doesn't show what is entered (show '*' or other char instead)""" |
28 | 29 |
29 def __init__(self, *args, **kwargs): | 30 def __init__(self, *args, **kwargs): |