From 7ccecb6f5db44f120228c2c527022467a3e8e242 Mon Sep 17 00:00:00 2001 From: Phyks Date: Thu, 26 Dec 2013 00:44:25 +0100 Subject: [PATCH] Found a hack to make button exit functional. Hope there won't be any memory leak... :/ --- piboard.py | 1 + 1 file changed, 1 insertion(+) diff --git a/piboard.py b/piboard.py index 5589a57..159b878 100755 --- a/piboard.py +++ b/piboard.py @@ -122,6 +122,7 @@ class PaintWindow(wx.Window): def button_exit_handle(self, event): self.Destroy() + wx.App.ExitMainLoop(app) def button_clear_handle(self, event): self.button_exit.Destroy()