Re: ComboBoxText and constructor/new issues
- From: Robert Park <rbpark exolucere ca>
- To: Mathieu Bridon <bochecha fedoraproject org>
- Cc: python-hackers-list gnome org
- Subject: Re: ComboBoxText and constructor/new issues
- Date: Mon, 16 May 2011 11:52:07 -0700
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]