Commit f6896ade authored by sumpfralle's avatar sumpfralle

never wait for error dialogs to return


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@1251 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent fe01d6b9
......@@ -196,8 +196,15 @@ class GTKHandler(logging.Handler):
message_title = "".join([char for char in message_title
if ord(char) < 128])
window.set_title(message_title)
window.run()
window.destroy()
# make sure that the window gets destroyed later
def close_window(*args):
window.destroy()
for signal in ("close", "response"):
window.connect(signal, close_window)
# accept "destroy" action -> remove window
window.connect("destroy", lambda *args: True)
# show the window, but don't wait for a response
window.show()
class HookHandler(logging.Handler):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment