(self)
Determine list of names of key modifiers for this platform.

        The names are used to build Tk bindings -- it doesn't matter if the
        keyboard has these keys; it matters if Tk understands them.  The
        order is also important: key binding equality depends on it, so
        config-keys.def must use the same ordering.
Determine list of names of key modifiers for this platform.
Determine list of names of key modifiers for this platform .
def set_modifiers_for_platform(self):
        """Determine list of names of key modifiers for this platform.

        The names are used to build Tk bindings -- it doesn't matter if the
        keyboard has these keys; it matters if Tk understands them.  The
        order is also important: key binding equality depends on it, so
        config-keys.def must use the same ordering.
        """
        if sys.platform == "darwin":
            self.modifiers = ['Shift', 'Control', 'Option', 'Command']
        else:
            self.modifiers = ['Control', 'Alt', 'Shift']
        self.modifier_label = {'Control': 'Ctrl'}
def set_modifiers_for_platform ( self ) : if sys . platform == "darwin" : self . modifiers = [ 'Shift' , 'Control' , 'Option' , 'Command' ] else : self . modifiers = [ 'Control' , 'Alt' , 'Shift' ] self . modifier_label = { 'Control' : 'Ctrl' }