class_docstr: Format selected text (region).
class_docstr_tok: ["Format","selected","text","(","region",")","."]
docstr: Comment out each line in region.
  
  ## is appended to the beginning of each line to comment it out.
docstr_tok: ["Comment","out","each","line","in","region",".","#","#","is","appended","to","the","beginning","of","each","line","to","comment","it","out","."]
code: def comment_region_event(self, event=None):
      """Comment out each line in region.
  
      ## is appended to the beginning of each line to comment it out.
      """
      head, tail, chars, lines = self.get_region()
      for pos in range(len(lines) - 1):
          line = lines[pos]
          lines[pos] = "##" + line
      self.set_region(head, tail, chars, lines)
      return "break"
  
imports: import re
  from tkinter.messagebox import askyesno
  from tkinter.simpledialog import askinteger
  from idlelib.config import idleConf
label_desc: Use image node_id 6 for calling the FormatRegion obj's underlying member method code with example usage: obj.comment_region_event(event) and returns: str