title: How to keep the window focus on new Toplevel() window in Tkinter?
body: <p>I am currently writing a win32gui python27 application (I'm running win7). I am wondering if it is possible to create a new window from my mainloop() and KEEPING the focus on it, possibly by stopping the mainloop and deactivating the root window. In a sort of pseudo code example:</p>
  
  <pre><code>root=Tk()
  #put in some widgets, such as statusbars, tkfileDialog widgets etc...
  O=Toplevel()
  OptionMenu(O) #wait for user to make his choices; btw: OptionMenu is a class...
  tkFileDialog.askdirectory(...) #THEN interpret this line
  </code></pre>
  
  <p>Basically, I'd like to achieve what most of the widgets in tkfiledialog and tksimpledialog do:<br>
  To steal the focus from the main window (not just the console focus, the wm focus) and to resume the mainloop until AFTER everything in, for example, OptionMenu has been resolved. I hope I could make my goals clear to y'all, I just started Tkinter programming a couple of weeks ago and may confuse and misinterpret some concepts behind it....<br>
  That's all, folks!</p>