def determine_keymap(qteMain=None):
    """
    Return the conversion from keys and modifiers to Qt constants.

    This mapping depends on the used OS and keyboard layout.

    .. warning :: This method is currently only a dummy that always
       returns the same mapping from characters to keys. It works fine
       on my Linux and Windows 7 machine using English/US keyboard
       layouts, but other layouts will eventually have to be
       supported.
    """
    if qteMain is None:
        # This case should only happen for testing purposes.
        qte_global.Qt_key_map = default_qt_keymap
        qte_global.Qt_modifier_map = default_qt_modifier_map
    else:
        doc = 'Conversion table from local characters to Qt constants'
        qteMain.qteDefVar("Qt_key_map", default_qt_keymap, doc=doc)
        doc = 'Conversion table from local modifier keys to Qt constants'
        qteMain.qteDefVar("Qt_modifier_map", default_qt_modifier_map, doc=doc)
def determine_keymap ( qteMain = None ) : if qteMain is None : qte_global . Qt_key_map = default_qt_keymap qte_global . Qt_modifier_map = default_qt_modifier_map else : doc = 'Conversion table from local characters to Qt constants' qteMain . qteDefVar ( "Qt_key_map" , default_qt_keymap , doc = doc ) doc = 'Conversion table from local modifier keys to Qt constants' qteMain . qteDefVar ( "Qt_modifier_map" , default_qt_modifier_map , doc = doc )
Return the conversion from keys and modifiers to Qt constants.

    This mapping depends on the used OS and keyboard layout.

    .. warning :: This method is currently only a dummy that always
       returns the same mapping from characters to keys. It works fine
       on my Linux and Windows 7 machine using English/US keyboard
       layouts, but other layouts will eventually have to be
       supported.