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

List:       pykde
Subject:    [PyQt] qApp.keyboardInputLocale() - bug or misunderstanding?
From:       "Timothy W. Grove" <tim_grove () sil ! org>
Date:       2013-11-29 11:20:19
Message-ID: 52987873.90807 () sil ! org
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


My current keyboard is English. The result of 
*/print(qApp.keyboardInputDirection(), 
qApp.keyboardInputLocale().language())/* is "0 31" showing that the 
keyboard layout is left-right and the language is English. If I change 
my keyboard to a language with a right-left layout, such as Hebrew or 
Arabic, the result is "1 31" showing a change of keyboard input 
direction but indicating that the language is still English.

Is this a bug with qApp.keyboardInputLocale() or is my expection of its 
result incorrect?

How can I retrieve the country/language name of the new keyboard layout? 
(Windows & OSX)

Thanks for any help.
Tim

PyQt4-4.10.3-gpl-Py3.3-Qt4.8.5-x32

[Attachment #5 (text/html)]

<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    My current keyboard is English. The result of <b><i>print(qApp.keyboardInputDirection(),
        qApp.keyboardInputLocale().language())</i></b> is "0 31" showing
    that the keyboard layout is left-right and the language is English.
    If I change my keyboard to a language with a right-left layout, such
    as Hebrew or Arabic, the result is "1 31" showing a change of
    keyboard input direction but indicating that the language is still
    English.<br>
    <br>
    Is this a bug with qApp.keyboardInputLocale() or is my expection of
    its result incorrect? <br>
    <br>
    How can I retrieve the country/language name of the new keyboard
    layout? (Windows &amp; OSX)<br>
    <br>
    Thanks for any help.<br>
    Tim<br>
    <br>
    PyQt4-4.10.3-gpl-Py3.3-Qt4.8.5-x32<br>
  </body>
</html>


_______________________________________________
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