Skip to content

Commit

Permalink
remove _larch from AthenaProject call, fix GH #472
Browse files Browse the repository at this point in the history
  • Loading branch information
newville committed Oct 20, 2023
1 parent d1cdb41 commit 0eed0e9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions larch/wxxas/xasgui.py
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ def createMenus(self):

MenuItem(self, fmenu, 'wxInspect\tCtrl+I',
'Show wx inspection window', self.onwxInspect)

MenuItem(self, fmenu, 'Edit Preferences\tCtrl+E', 'Customize Preferences',
self.onPreferences)

Expand Down Expand Up @@ -630,7 +630,7 @@ def createMenus(self):

def onwxInspect(self, evt=None):
wx.GetApp().ShowInspectionTool()

def onShowLarchBuffer(self, evt=None):
if self.larch_buffer is None:
self.larch_buffer = LarchFrame(_larch=self.larch, is_standalone=False)
Expand Down Expand Up @@ -752,7 +752,7 @@ def save_athena_project(self, filename, grouplist, prompt=True,
"Overwrite existing file?", style=wx.YES_NO):
return

aprj = AthenaProject(filename=filename, _larch=self.larch)
aprj = AthenaProject(filename=filename)
for label, grp in zip(grouplist, savegroups):
aprj.add_group(grp)
aprj.save(use_gzip=True)
Expand Down

0 comments on commit 0eed0e9

Please sign in to comment.