From db113a985ee851795f36f157e0fe288b44e53886 Mon Sep 17 00:00:00 2001 From: neofelis2X Date: Fri, 25 Aug 2023 19:18:26 +0200 Subject: [PATCH] Closing DisplayFrame also closes SettingsFrame --- printrun/projectlayer.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/printrun/projectlayer.py b/printrun/projectlayer.py index 370127dca..df440d521 100644 --- a/printrun/projectlayer.py +++ b/printrun/projectlayer.py @@ -53,6 +53,9 @@ def __init__(self, parent, title, res = (1024, 768), printer = None, scale = 1.0 self.CentreOnParent() self.Show() + # Closing the DisplayFrame calls the close method of Settingsframe + self.Bind(wx.EVT_CLOSE, parent.on_close) + self.scale = scale self.index = 0 self.size = res