Skip to content

Commit

Permalink
Closing DisplayFrame also closes SettingsFrame
Browse files Browse the repository at this point in the history
  • Loading branch information
neofelis2X committed Aug 25, 2023
1 parent 610dc04 commit db113a9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions printrun/projectlayer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit db113a9

Please sign in to comment.