non-modal about dialog; fixes #46

This commit is contained in:
Daniel Pavel 2013-05-26 02:01:59 +03:00
parent 3482257b15
commit 7e81dede2f
1 changed files with 11 additions and 3 deletions

View File

@ -47,10 +47,18 @@ def _create():
about.set_website('http://pwr.github.io/Solaar/')
about.set_website_label(NAME)
about.connect('response', lambda x, y: x.hide())
def _hide(dialog, event):
dialog.hide()
return True
about.connect('delete-event', _hide)
return about
def show_window(_):
w = _create()
w.run()
w.destroy()
global _dialog
if _dialog is None:
_dialog = _create()
_dialog.present()