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 Desktop
Packages, which is subscribed to pygobject in Ubuntu.
https://bugs.launchpad.net/bugs/1248152
Title:
Gtk.FileChooserWidget won't show the "create folder" button
Status in “pygobject” package in Ubuntu:
Confirmed
Bug description:
Using the python bindings, creating a filechooser widget, there's no
way to display the "create folder" icon. This seems to work fine in C.
There are two ways to reproduce this:
1) Gtk.FileChooserWidget(parent, Gtk.FileChooserAction.CREATE_FOLDER)
2) Gtk.FileChooserWidget(parent, Gtk.FileChooserAction.SELECT_FOLDER)
and then call widget.set_create_folders(True)
It all works fine when using a Gtk.FileChooserDialog but I really need
to embed a filechooser widget in a Gtk.Assistant dialog.
This affects 12.04 and 13.10.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pygobject/+bug/1248152/+subscriptions
--
Mailing list: https://launchpad.net/~desktop-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help : https://help.launchpad.net/ListHelp