Changeset 2fc9243 in sasview
- Timestamp:
- Apr 9, 2010 9:19:27 AM (15 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:
- 4ed210f4
- Parents:
- ba535a6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
guiframe/local_perspectives/plotting/plotting.py
r31482fc r2fc9243 45 45 """ 46 46 self.menu = wx.Menu() 47 48 self.menu.Append(wx.NewId(), "No plot available", 49 "No plot available") 50 self.menu.FindItemByPosition(0).Enable(False) 47 51 return [(id, self.menu, "Plot")] 48 52 … … 158 162 159 163 event_id = self.parent.popup_panel(new_panel) 164 #remove the default item in the menu 165 if len(self.plot_panels) == 0: 166 self.menu.RemoveItem(self.menu.FindItemByPosition(0)) 167 160 168 self.menu.Append(event_id, new_panel.window_caption, 161 169 "Show %s plot panel" % new_panel.window_caption)
Note: See TracChangeset
for help on using the changeset viewer.