Hi!
2010/10/3 pelt...@gmail.com:
and the dict(?!?) is like this:
letters = {}
letters['1'] = ['', '.', ',', '?', '!', '1', '@', '-', '_', '(',
')', ':', ';', '', '%', '*', '#', '+', '', '=', '', '$', '£', '§', '¥']
letters['2'] = ['', 'a', 'b', 'c', '2', 'å', u'ä']
[...]
and the appropriate char from that is written with:
self.message_buffer.set_text(updatedtext)
Can you construct a minimal example that demonstrates the bug? Maybe
you're mixing str objects with unicode objects? What happens if you
use 'ä' (a str with utf-8 as encoding) instead of u'ä' (a unicode
object representing 'ä') in that code? What is the class of
self.message_object, and how do you compose updatedtext? What does
repr(updatedtext) give when printed before the affected line? If it's
a gtk.TextBuffer, maybe you want to use
self.message_buffer.insert(self.message_buffer.get_end_iter(),
new_char) or self.message_buffer.insert_at_cursor(new_char) instead?
HTH.
Thomas
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers