(self, event=None)
return "break"
Dedent region by indentwidth spaces.
Dedent region by indentwidth spaces.
Dedent region by indentwidth spaces .
def dedent_region_event(self, event=None):
        "Dedent region by indentwidth spaces."
        head, tail, chars, lines = self.get_region()
        for pos in range(len(lines)):
            line = lines[pos]
            if line:
                raw, effective = get_line_indent(line, self.editwin.tabwidth)
                effective = max(effective - self.editwin.indentwidth, 0)
                lines[pos] = self.editwin._make_blanks(effective) + line[raw:]
        self.set_region(head, tail, chars, lines)
        return "break"
def dedent_region_event ( self , event = None ) : head , tail , chars , lines = self . get_region ( ) for pos in range ( len ( lines ) ) : line = lines [ pos ] if line : raw , effective = get_line_indent ( line , self . editwin . tabwidth ) effective = max ( effective - self . editwin . indentwidth , 0 ) lines [ pos ] = self . editwin . _make_blanks ( effective ) + line [ raw : ] self . set_region ( head , tail , chars , lines ) return "break"