title: Python 3.x tkinter Drag and Drop preventing menu from being clickable?
body: <p>Something about the drop_target_register() method seems to disable clicking the menubar until a file is dropped into the drop target. I would like to have the menubar functional regardless of whether or not there is a file in the drag and drop.</p>
  
  <p>I'm running Python 3.6.4, and this is a simple tidbit of code that displays the problem.</p>
  
  <pre><code>from tkinter import *
  from TkinterDnD2 import *
  
  def drop(event):
      entry_sv.set(event.data)
  
  root = TkinterDnD.Tk()
  
  menubar = Menu(root)
  
  menu = Menu(menubar, tearoff=0)
  menu.add_command(label="Exit", command=root.quit)
  menubar.add_cascade(label="File", menu=menu)
  
  root.config(menu=menubar)
  
  entry_sv = StringVar()
  entry_sv.set('Drop Here...')
  entry = Entry(root, textvar=entry_sv)
  entry.pack(fill=X)
  entry.drop_target_register(DND_FILES)
  entry.dnd_bind('&lt;&lt;Drop&gt;&gt;', drop)
  
  root.mainloop()
  </code></pre>
  
  <p>In PyCharm 'drop_target_register' and 'dnd_bind' both display the message:</p>
  
  <blockquote>
    <p>"Unresolved attribute reference 'drop_target_register' for class
    'Entry' This inspection detects names that should resolve but don't.
    Due to dynamic dispatch and duck typing, this is possible in a limited
    but useful number of cases. Top-level and class-level items are
    supported better than instance items."</p>
  </blockquote>
  
  <p>That said, the drag and drop works.</p>