Changeset 954:ad190b3a88c7 for src/mlx/gui/common.py
- Timestamp:
- 05/12/19 07:15:26 (5 years ago)
- Branch:
- python3
- hg-Phase:
- (<MercurialRepository 1 'hg:/home/ivaradi/mlx/hg' '/'>, 'public')
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/gui/common.py
r926 r954 110 110 111 111 pixbuf_new_from_file = gdk.pixbuf_new_from_file 112 113 def text2unicode(text):114 """Convert the given text, returned by a Gtk widget, to Unicode."""115 return str(text)116 117 def text2str(text):118 """Convert the given text, returned by xstr to a string."""119 return str(text)120 112 121 113 else: # pygobject … … 199 191 import codecs 200 192 _utf8Decoder = codecs.getdecoder("utf-8") 201 202 def text2unicode(str):203 """Convert the given text, returned by a Gtk widget, to Unicode."""204 return _utf8Decoder(str)[0]205 206 def text2str(text):207 """Convert the given text, returned by xstr to a string."""208 return _utf8Decoder(text)[0]209 193 210 194 import cairo
Note:
See TracChangeset
for help on using the changeset viewer.