I am writing a program in python that calls a popup window with some general information with an ok button. If I close the window using the window's close button I have no problems but If I call the same destroy function using the button call, it will not kill the popup.
Expand|Select|Wrap|Line Numbers
- def destroy(self, widget, data=None):
- print("Delete event occurred")
- return False
- self.popup.connect("destroy", self.destroy)
- self.button_pop.connect("clicked", self.destroy)
is the gtk window and......
self.button_pop.connect("clicked", self.destroy)
is the button widget in the window. How do I handle this?
z