[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] Programmatically changing the input method,
From:       Phil Thompson <phil () riverbankcomputing ! com>
Date:       2009-01-27 17:48:52
Message-ID: 5f2e82d3971d8cc33d46f8f2e4cb2bcb () localhost
[Download RAW message or body]

On Sat, 24 Jan 2009 17:25:18 +0900, Damien Elmes <resolve@ichi2.net> wrote:
> Hi folks,
> 
> In my application (http://ichi2.net/anki/) I'd like text input fields
> to remember the last input method, so that if a user is inputting
> Japanese into one field and English in another, they don't have to
> switch between input methods every time. This works out of the box for
> me on Linux, as apparently Qt uses a separate XIM context for each
> widget. But on Windows and OSX, the input context seems to be
> application-wide.
> 
> I was looking at the docs to QInputContextFactory. The keys() and
> languages() methods look like they might be useful here, but I see
> that this class is not available in PyQt. Am I barking up the wrong
> tree? If inclusion of this class in unlikely in the future, is there
> an easy way to add it to a binary install of PyQt (such as dropping an
> extra sip into a directory)?

QInputContextFactory will be in tonight's PyQt4 snapshot - I'm not sure why
I didn't wrap it originally.

Phil
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic