Changeset 4c5448c in sasview for calculatorview/src/sans
- Timestamp:
- Dec 19, 2011 11:13:19 AM (13 years ago)
- Branches:
- master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 1352c78
- Parents:
- cd075e8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
calculatorview/src/sans/perspectives/calculator/pyconsole.py
r916f5c0 r4c5448c 60 60 self.Centre() 61 61 self.fileMenu.FindItemById(wx.ID_NEW).Enable(False) 62 self. fileMenu.Enable(wx.ID_OPEN, False)62 self.Bind(wx.EVT_MENU, self.OnOpenFile, id=wx.ID_OPEN) 63 63 self.Bind(wx.EVT_MENU, self.OnSaveFile, id=wx.ID_SAVE) 64 64 self.Bind(wx.EVT_MENU, self.OnSaveAsFile, id=wx.ID_SAVEAS) … … 109 109 wx.OK|wx.ICON_INFORMATION) 110 110 dial.ShowModal() 111 112 def OnOpenFile(self, event): 113 """ 114 OnFileOpen 115 """ 116 self.OnFileOpen(event) 117 self.Show(False) 118 self.Show(True) 111 119 112 120 def OnSaveFile(self, event):
Note: See TracChangeset
for help on using the changeset viewer.