Reported by user on-list:
I can't use input method (IBus) on Ubuntu Natty.
I'm using Natty's Python and PyQt packages. And I compiled most recent released version of zma, pyzmq. I don't know why QTextEdit widgets in console_widget doesn't support input method.
I have no idea if this is an inherent limitation of the udnerlying widget or something that's there and easily turned on, which we're simply not activating.
It looks like Qt supports this:
I'll try this out when I get a chance.
FYI. I can use input method when I comment out all "setReadOnly(True)".
Maybe, this is a bug of QPlainTextEdit.
When with QTextEdit, InputMethod is available after setReadOnly(True); setReadOnly(False).
But it isn't available with QPlainTextEdit.
To fix this bug, insert "self._control.setAttribute(QtCore.Qt.WA_InputMethodEnabled, True)" after
Work around Qt bug where input method is disabled sometimes in QPlain…
Confirmed the bug and fix, and pushed to master.
Thanks for the fix!
Thanks everyone for the quick response on this!
@epatters, quick reminder: when we get a fix like that from a user,
remember to credit them in the commit message, so that when we write
the final release notes and credits we acknowledge them. Just keep it
in mind for the future, in this case I'll keep track of it.
OK, will do.