[pygtk] Pygobject TreeView

sylvain mouquet sylvain.mouquet at gmail.com
Wed May 30 06:22:42 WST 2012


Hi Simon,

It works thanks

Sylvain

2012/5/29 Simon Feltman <s.feltman at gmail.com>

> Hi Sylvain,
>
> GObject properties can be set in constructors using keyword args. This
> allows for setting properties flagged as construct-only. So try this:
>
> treemodelsort = Gtk.TreeModelSort(model=self.treeModelFilter)
>
> -Simon
>
> On Tue, May 29, 2012 at 10:39 AM, sylvain mouquet <
> sylvain.mouquet at gmail.com> wrote:
>
>> Hi,
>>
>> I have a TreeView with a TreeviewFilter and with a TreeviewSorter.
>> When i create the TreeviewSorter, the constructor does not allow to add
>> the model. I dont know how can i set the model of the TreeviewSorter :
>>
>> treemodelsort = Gtk.TreeModelSort(self.treeModelFilter)
>> TypeError: GObject.__init__() takes exactly 0 arguments (1 given)
>>
>> Cordially,
>> Sylvain
>>
>> _______________________________________________
>> pygtk mailing list   pygtk at daa.com.au
>> http://www.daa.com.au/mailman/listinfo/pygtk
>> Read the PyGTK FAQ: http://faq.pygtk.org/
>>
>
>


-- 
Cordialement,
Sylvain
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.daa.com.au/pipermail/pygtk/attachments/20120530/ad5f2587/attachment.html>


More information about the pygtk mailing list