title: Properly close a GTK dialog window
body: <p>I built an application using Glade, Python3, Gtk3. When I open a dialog window and close it again, I receive the error:</p>
  <pre><code>  TypeError: on_aboutdialog_destroy() takes 1 positional argument but 2 were given
  </code></pre>
  <p>My application looks like this:</p>
  <pre><code>  #!/usr/bin/env python
  
    from gi.repository import Gtk
    from gi.repository import Gio
    import sys
  
    class Handler:
          #Main Window
          def on_mainwindow_destroy(self):
                print(&quot;destroy window&quot;)
                Gtk.main_quit()
          
          #Menu items
          def on_menuquit_activate(self, menuitem):
                print(&quot;quit from menu&quot;)
                Gtk.main_quit()
  
          def on_menuabout_activate(self, menuitem, data=None):
                print(&quot;menu about activated&quot;)
                aboutdialog = builder.get_object(&quot;aboutdialog&quot;)
                aboutdialog.run()
  
          def on_aboutdialog_destroy(self):
                print(&quot;destroy about&quot;)
                aboutdialog.hide()
          
  
    builder = Gtk.Builder()
    builder.add_from_file(&quot;psn.glade&quot;)
    builder.connect_signals(Handler())
  
    window = builder.get_object(&quot;mainwindow&quot;)
    window.show_all()
  
    Gtk.main()
  </code></pre>