Re: ComboBoxText and constructor/new issues



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.

The only bug is in your expectations ;-) Just use .new(), and there's
no problems.

-- 
http://exolucere.ca


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]