Connect a method for window destroy
Posted
by
Roberto
on Ask Ubuntu
See other posts from Ask Ubuntu
or by Roberto
Published on 2012-06-29T07:00:57Z
Indexed on
2012/06/29
9:23 UTC
Read the original article
Hit count: 208
I have a main window with a Gtk Button named openDialog. If I click on this button another Window (addName) popups. I would like to write a method (or a function, don't know which is the right name in python) in my main window file, called printHi. I would like to run this printHi method (in my main window file), when addName window is destroyed.
I tried something like this:
def on_addName_destroy():
printHi()
But it doesn't work. Any suggestion?
© Ask Ubuntu or respective owner