On Sat, 2005-01-22 at 17:05 +0530, Baiju M wrote:
> Hi,
>     Last two days I was studying Sub-classing GObject.
> Can any one given a pointer, why 
> raise AttributeError, "Unknown property %s" % property.name
> is not raising, when I tried to set wrong properties?

  Please, bug reports should go into bugzilla, not mailing-list.

  What version of pygtk do you have?  I look at the code now in CVS and
it looks OK.  Just one thing: when you raise AttributeError, pygtk just
prints the exception and clears the error indicator.  This is because
sometimes do_set_property is called by gtk+/C itself, and C libraries
don't know anything about Python exceptions, so it would be confusing to
have the exception set, only to be noticed by python much later.

  Regards.

-- 
Gustavo J. A. M. Carneiro
<[EMAIL PROTECTED]> <[EMAIL PROTECTED]>
The universe is always one step beyond logic

_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to