It is currently not possible.  When you create a python subclass of a
widget, you are not creating a new C level GtkObject subclass.  This means
that any signals you would be adding with gtk_signal_new would actually be
added to the widget you are subclassing.

James Henstridge.

--
Email: [EMAIL PROTECTED]
WWW:   http://www.daa.com.au/~james/


On Sun, 11 Apr 1999, Tim Peoples wrote:

> 
> All,
> 
> Is there any way for me to define my own signal names for pygtk [compound]
> widgets?  From reading the C docs for Gtk, it appears that I'm supposed
> to call 'gtk_signal_new()' to create/register a new signal name... but
> I can't seem to find reference to anything like that in 'gtk.py'.
> 
> What I have is a number of application specific widgets that are
> sub-classed from gtk widgets and I'd like to have them emit their own
> signals for certain events (to mirror the behavior of "real" gtk widgets).
> 
> Is this possible?  If so, how do I do it?
> 
> Tim.
> 
> P.S.  Thanx James... pygtk is a joy to use...  :-)
> 
> -- 
> 
>  ____________________________________________   _                       _ 
>                            Timothy E. Peoples  |_| C o l l e c t i v e |_|
>                             Senior Consultant   |_    technologies     _| 
>                              [EMAIL PROTECTED]     []                 []   
>                                                     a pencom company
> 
>            Where are we going, and why am I in a handbasket?
> 
> To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]
> 

To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]

Reply via email to