(self)
Remove the keybindings before they are changed.
Remove the keybindings before they are changed.
Remove the keybindings before they are changed .
def RemoveKeybindings(self):
        "Remove the keybindings before they are changed."
        # Called from configdialog.py
        self.mainmenu.default_keydefs = keydefs = idleConf.GetCurrentKeySet()
        for event, keylist in keydefs.items():
            self.text.event_delete(event, *keylist)
        for extensionName in self.get_standard_extension_names():
            xkeydefs = idleConf.GetExtensionBindings(extensionName)
            if xkeydefs:
                for event, keylist in xkeydefs.items():
                    self.text.event_delete(event, *keylist)
def RemoveKeybindings ( self ) : # Called from configdialog.py self . mainmenu . default_keydefs = keydefs = idleConf . GetCurrentKeySet ( ) for event , keylist in keydefs . items ( ) : self . text . event_delete ( event , * keylist ) for extensionName in self . get_standard_extension_names ( ) : xkeydefs = idleConf . GetExtensionBindings ( extensionName ) if xkeydefs : for event , keylist in xkeydefs . items ( ) : self . text . event_delete ( event , * keylist )