Hi,

I got some problems with callbacks. Let's explain the case with a sample
code (i use pygtk 0.6.7 with python 2.0)

from mymod import my_win_class

def my_nice_and_very_useful_callback():
    ...

def my_function():
    my_win = my_win_class('My nice window')        # type of my_win is GtkWindow
    my_win.connect ('destroy' , my_nice_and_very_useful_callback)
    ...

Why nothing happens I close an instance of my_win_class ?
Obviously, it's ok when my callback is declared in the imported module, but
i need to have the callback in the main module.

Thanx for any help provided

ps : apologizes for my crappy english

-- 

Brice VISSIERE
[EMAIL PROTECTED]

_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk

Reply via email to