title: tkinter menu checkbutton - Prevent menu to close
body: <p>Is there a way to keep tkinter menu opened when clicking check button?
  In sample program when you click menu item the menu list disapear so you need to open menu again to click next item.
  So is there a way to keep menu oppended so multiple checkbox can be clicked?</p>
  
  <pre><code>from Tkinter import *
  
  def click():
      pass
  
  root = Tk()
  menu = Menu(root)
  root.config(menu=menu)
  choicesmenu = Menu(menu,tearoff=0)
  
  menu.add_cascade(label="Choices", menu=choicesmenu)
  choicesmenu.add_checkbutton(label="choice1", command=click)
  choicesmenu.add_checkbutton(label="choice2", command=click)
  choicesmenu.add_checkbutton(label="choice3", command=click)
  choicesmenu.add_checkbutton(label="choice4", command=click)
  choicesmenu.add_checkbutton(label="choice5", command=click)
  choicesmenu.add_checkbutton(label="choice6", command=click)
  choicesmenu.add_checkbutton(label="choice7", command=click)
  
  mainloop()
  </code></pre>