Hi Christian,

The ParamSpec gives information about the name and type of the property
which changed. To get the value you can use:
   obj.get_property(pspec.name)
or
   obj.props.width

-Simon



On Tue, Dec 4, 2012 at 2:27 PM, Christian Mallwitz <c.mallw...@gmail.com>wrote:

> Sorry that was sent to quickly :-(
>
> I'm trying to track 'notify::width' events from Gtk.TreeViewColumn as
> described in
> https://mail.gnome.org/archives/gtk-list/2009-September/msg00094.html
>
> The missing piece: I can't find some explanation of what to do with
> the width parameter send to event handler function. It is parameter is
> of this kind:
>
> type(width): <type 'gobject.GParamSpec'>
> str(width): <GParamInt 'width'>
>
> Reading http://developer.gnome.org/gobject/stable/gobject-GParamSpec.html
> just leaves me more confused...
>
> I'm using PyGi on Ubuntu 12.04.
>
> Any idea?
>
> Thanks
> Christian
>
>
> On Tue, Dec 4, 2012 at 10:22 PM, Christian Mallwitz
> <c.mallw...@gmail.com> wrote:
> > Hi
> >
> > I'm trying to track 'notify::width' events from Gtk.TreeViewColumn as
> > described in
> https://mail.gnome.org/archives/gtk-list/2009-September/msg00094.html
> >
> > While there are view resources explaining that it can be done, I can't
> > find some explanation of what to do with the width parameter send to
> > event handler function. It is
> _______________________________________________
> pygtk mailing list   pygtk@daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://faq.pygtk.org/
>
_______________________________________________
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Reply via email to