title: tkSimpleDialog usage in python3
body: <p>I'm working on my program to make it python3-compliant, but it relies heavily on tkinter and I have a few problems.</p>
  
  <p>I already changed all the import names since many among them were renamed (<a href="https://stackoverflow.com/questions/673174/which-tkinter-modules-were-renamed-in-python-3">Which tkinter modules were renamed in Python 3?</a>),
  but how can I deal with the following?</p>
  
  <pre><code>class PasswordDialog(tkSimpleDialog.Dialog):
  </code></pre>
  
  <p>I tried changing it to variations of </p>
  
  <pre><code>class PasswordDialog(tkinter.simpledialog.dialog):
  </code></pre>
  
  <p>but it keeps on telling me that <code>AttributeError: 'module' object has no attribute 'dialog'</code> </p>
  
  <p>(not) working code:</p>
  
  <pre><code>#!/usr/bin/python3
  
  from tkinter import simpledialog
  
  class PasswordDialog(simpledialog.Dialog):                 
      def body(self, master):
          Label(master, text="Password for file "+currentfn).grid(row=0, sticky=W)
          self.e1 = Entry(master,show='*')
          self.e1.grid(row=0, column=1)
          self.attributes("-topmost", True) 
          return self.e1 
      def apply(self):
          p = self.e1.get()
          self.result = p
  </code></pre>
  
  <p>Result:</p>
  
  <pre><code>AttributeError: 'module' object has no attribute 'Dialog'
  </code></pre>