Hello, again.
After reading through FAQ about creating new signal it seems to me that
it's possible to register it only for widgets objects(fix me if i'm
wrong).
In wxPython it's possible to do the following:
# create our custom event type
wxEVT_UPDATE_STATUS = wxNewEventType()
def EVT_UPDATE_STATUS(win, func):
win.Connect(-1, -1, wxEVT_UPDATE_STATUS, func)
# our custom event object
class MyUpdateEvent(wxPyEvent):
def __init__(self, mydata):
wxPyEvent.__init__(self)
self.SetEventType(wxEVT_UPDATE_SATUS)
self.mydata = mydata
Somewhere in the code i can connect EVT_UPDATE_STATUS to some widget
and somewhere in the application i can do:
event = MyUpdateEvent(mydata)
wxPostEvent(window, event)
After that my widget will receive this custom event.
Could somebody provide example of something similar in the PyGTK?
Thanks in advance.
Best regards,
Ruslan
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/