Python GTK3: how to create a Gtk.FileChooseDialog?
How to create a Gtk.FileChooseDialog properly? This popular tutorial says to use code like the following: import gi gi.require_version('Gtk', '3.0') from gi.repository import Gtk dialog = Gtk.FileChooserDialog("Please choose a folder", None, Gtk.FileChooserAction.SELECT_FOLDER, (Gtk.STOCK_CANCEL, Gtk.ResponseType.CANCEL, "Select", Gtk.ResponseType.OK)) But, if you run this with python -W error (to catch the deprecated warnings) it says: File "test3.py", line 8, in <module> "Select", Gtk.ResponseType.OK)) File "/usr/lib/python2.7/dist-packages/gi/overrides/__init__.py", line 287, in new_init