Re: ComboBoxText and constructor/new issues
- From: John Stowers <john stowers lists gmail com>
- To: Robert Park <rbpark exolucere ca>
- Cc: python-hackers-list gnome org
- Subject: Re: ComboBoxText and constructor/new issues
- Date: Thu, 19 May 2011 22:15:52 +1200
On Mon, 2011-05-16 at 11:52 -0700, Robert Park wrote:
> On Thu, May 12, 2011 at 4:43 PM, Mathieu Bridon
> <bochecha fedoraproject org> wrote:
> > I have been trying to use a Gtk.ComboBoxText and something seems weird
> > to me: if I create the combobox with Gtk.ComboBoxText.new(), everything
> > works as expected, but if I create it with Gtk.ComboBoxText(), the class
> > seems to be in a state where lots of things will not work afterwards.
>
> I am not entirely certain, but I think I read somewhere that when
> you're using the new introspection bindings in Python, you are
> expected to just always use the .new() constructor for all objects.
> Invoking the class name directly is not a supported method of
> constructing objects.
This can't be correct. I have a few projects using pygobject now and
never use GtkFooBarClass.new [1]
John
[1] Well maybe sometimes, in cases where the new constructor is clearly
specially targeted, Pixbuf.new_from_path/file etc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]