title: Modal OK/Cancel-Style Dialogs
body: <p>I am part of the book
  Rapid GUI Programming with Python and Qt - The Definitive Guide to PyQt Programming (2008)
  I do not understand is that page 163-165</p>
  
  <pre><code>class NumberFormatDlg(QDialog):
      def __init__ (self, format, parent=None):
          super(NumberFormatDlg, self). __init__(parent)
  ...
  
  form = NumberFormatDlg()
  TypeError: __init__() takes at least 2 arguments (1 given)
  </code></pre>