peng3d/keybind.py
def changeKeybind(self,kbname,combo):
        """
        Changes a keybind of a specific keybindname.
        
        :param str kbname: Same as kbname of :py:meth:`add()`
        :param str combo: New key combination
        """
        for key,value in self.keybinds.items():
            if kbname in value:
                del value[value.index(kbname)]
                break
        if combo not in self.keybinds:
            self.keybinds[combo]=[]
        self.keybinds[combo].append(kbname)
        self.peng.sendEvent("peng3d.keybind.change",{"peng":self.peng,"kbname":kbname,"combo":combo})
def changeKeybind(self,kbname,combo):
        """
        Changes a keybind of a specific keybindname.
        
        :param str kbname: Same as kbname of :py:meth:`add()`
        :param str combo: New key combination
        """
        for key,value in self.keybinds.items():
            if kbname in value:
                del value[value.index(kbname)]
                break
        if combo not in self.keybinds:
            self.keybinds[combo]=[]
        self.keybinds[combo].append(kbname)
        self.peng.sendEvent("peng3d.keybind.change",{"peng":self.peng,"kbname":kbname,"combo":combo})
def changeKeybind ( self , kbname , combo ) : for key , value in self . keybinds . items ( ) : if kbname in value : del value [ value . index ( kbname ) ] break if combo not in self . keybinds : self . keybinds [ combo ] = [ ] self . keybinds [ combo ] . append ( kbname ) self . peng . sendEvent ( "peng3d.keybind.change" , { "peng" : self . peng , "kbname" : kbname , "combo" : combo } )
Changes a keybind of a specific keybindname.
        
        :param str kbname: Same as kbname of :py:meth:`add()`
        :param str combo: New key combination
Changes a keybind of a specific keybindname . : param str kbname : Same as kbname of : py : meth : add () : param str combo : New key combination