I don't understand this:

        chooser = Gtk.FileChooserWidget(self,
                  Gtk.FileChooserAction.SELECT_FOLDER)

What is the "self" there? As far as I can see, you should call the
proper constructor:

        chooser =
Gtk.FileChooserWidget.new(Gtk.FileChooserAction.SELECT_FOLDER)

Gtk.FileChooserWidget() calls the GObject constructor, but it seems
GtkFileChooserWidget doesn't actually expose the action as a property
(which is odd, most other widgets to). It works fine with that.

In principle, your style of invocation should be invalid and generate an
exception. The lack of an exception is what's causing this confusion,
I'll have a closer look there.

** Package changed: ubuntu => pygobject (Ubuntu)

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to pygobject in Ubuntu.
https://bugs.launchpad.net/bugs/1248152

Title:
  Gtk.FileChooserWidget won't show the "create folder" button

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pygobject/+bug/1248152/+subscriptions

-- 
desktop-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to