Completely noob question as I am not a programmer but really trying hard to learn Python (Object oriented programming in general).
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.
self.popup.conn ect("destroy", self.destroy)
is the gtk window and......
self.button_pop .connect("click ed", self.destroy)
is the button widget in the window. How do I handle this?
z
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.
Code:
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("click ed", self.destroy)
is the button widget in the window. How do I handle this?
z
Comment