Changeset 0e13148 in sasview
- Timestamp:
- Apr 1, 2009 1:55:47 PM (16 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:
- 910792f
- Parents:
- de5c813
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
guiframe/local_perspectives/plotting/Plotter2D.py
r15550f4 r0e13148 181 181 182 182 slicerpop.AppendSeparator() 183 item_list = self.parent.get_context_menu(self.graph)184 if (not item_list==None) and (not len(item_list)==0):185 186 for item in item_list:187 try:188 id = wx.NewId()189 slicerpop.Append(id, item[0], item[1])190 wx.EVT_MENU(self, id, item[2])191 except:192 wx.PostEvent(self.parent, StatusEvent(status=\193 "ModelPanel1D.onContextMenu: bad menu item %s"%sys.exc_value))194 pass195 slicerpop.AppendSeparator()196 197 id = wx.NewId()198 slicerpop.Append(id, '&Edit Detector Parameters')199 wx.EVT_MENU(self, id, self._onEditDetector)200 201 183 if not hasattr(self.data2D,"pictype"): 184 185 186 item_list = self.parent.get_context_menu(self.graph) 187 if (not item_list==None) and (not len(item_list)==0): 188 189 for item in item_list: 190 try: 191 id = wx.NewId() 192 slicerpop.Append(id, item[0], item[1]) 193 wx.EVT_MENU(self, id, item[2]) 194 except: 195 wx.PostEvent(self.parent, StatusEvent(status=\ 196 "ModelPanel1D.onContextMenu: bad menu item %s"%sys.exc_value)) 197 pass 198 slicerpop.AppendSeparator() 199 202 200 id = wx.NewId() 203 201 slicerpop.Append(id, '&Perform circular average') … … 235 233 236 234 slicerpop.AppendSeparator() 235 236 id = wx.NewId() 237 slicerpop.Append(id, '&Detector Parameters') 238 wx.EVT_MENU(self, id, self._onEditDetector) 239 237 240 238 241 id = wx.NewId()
Note: See TracChangeset
for help on using the changeset viewer.