You are not logged in.
Hi!
I have a problem with the "about dialog" in glade and also in 'pure' pygtk. The dialog's close button doesn't close the window as it did in the past (about 1 month back). It does not even generate any error message etc. . I suppose there should be no need to create a signal handler for this button, and in fact it's impossible. The other buttons as 'Credits' , 'License' and their 'Close' buttons work well. Please, does anybody know what's going on here?
glade-3.0.1-1
libglade-2.6.0-1
pygtk-2.8.6-3
gtk-1.2.10-7
Thank you free software developers for sharing your work.
Offline
Can you post some code? I don't believe I've experienced this
I am a gated community.
Offline
here is an 'pure' pygtk example:
try:
import sys
import gtk
import pygtk
pygtk.require("2.0")
except:
sys.exit(1)
class about:
def __init__(self):
x = gtk.AboutDialog()
x.set_name("foo")
x.set_authors("x")
x.connect('destroy',self.close)
x.show()
def close(self,widget):
sys.exit(0)
if __name__ == "__main__":
app = about()
gtk.main()
The main 'close' button doesn't work. The 'close' button in the 'credits' dialog works well. And the same in Glade.
Thank you free software developers for sharing your work.
Offline
I think I read something about that in the release notes for GTK+ 2.10. They removed default action to close a dialog when clicking the "Close"-button.
* Dialogs created by gtk_about_dialog_new() no longer hide automatically when the user clicks close. It is the applications responsibility to hide or destroy the dialog.
Offline
You can add a callback for the response signal. Why do you say it's impossible, or am I misunderstanding you?
I am a gated community.
Offline
You can add a callback for the response signal. Why do you say it's impossible, or am I misunderstanding you?
I'm sorry, I expected the close button's click signal isn't accesible since the other signals are handled by the 'about dialog' widget. I thought it's a bug when the other buttons work, this one doesn't and it did. Thank you.
Thank you free software developers for sharing your work.
Offline
This will work(from the pygtk-demos):
x.connect("response", lambda d, r: d.destroy())
Offline
This will work(from the pygtk-demos):
x.connect("response", lambda d, r: d.destroy())
Thank you. It works.
Thank you free software developers for sharing your work.
Offline