Changeset d6e39a8e in sasview
- Timestamp:
- Apr 24, 2012 9:35:27 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:
- 2778c4f
- Parents:
- 2ee5c61
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansguiframe/src/sans/guiframe/local_perspectives/plotting/Plotter1D.py
r6e75ed0 rd6e39a8e 267 267 self.subplot.set_xlim((xlo, xhi)) 268 268 self.subplot.set_ylim((ylo, yhi)) 269 # Update Graph menu and help string270 pos = self.parent._window_menu.FindItem(self.window_caption)271 helpString = 'Show/Hide Graph: '272 for plot in self.plots.itervalues():273 helpString += (' ' + str(plot.label) +';')274 self.parent._window_menu.SetHelpString(pos, helpString)275 269 else: 276 270 self.plots[data.id] = data … … 286 280 if self.is_zoomed: 287 281 self.is_zoomed = False 288 282 # Update Graph menu and help string 283 pos = self.parent._window_menu.FindItem(self.window_caption) 284 helpString = 'Show/Hide Graph: ' 285 for plot in self.plots.itervalues(): 286 helpString += (' ' + str(plot.label) +';') 287 self.parent._window_menu.SetHelpString(pos, helpString) 289 288 290 289 def draw_plot(self): … … 689 688 return 690 689 self.toolbar.AddSeparator() 691 id_ delete = wx.NewId()692 delete = wx.Bitmap(GUIFRAME_ICON.HIDE_ID_PATH, wx.BITMAP_TYPE_PNG)693 self.toolbar.AddSimpleTool(id_ delete, delete, 'Hide', 'Hide')690 id_hide = wx.NewId() 691 hide = wx.Bitmap(GUIFRAME_ICON.HIDE_ID_PATH, wx.BITMAP_TYPE_PNG) 692 self.toolbar.AddSimpleTool(id_hide, hide, 'Hide', 'Hide') 694 693 self.toolbar.Realize() 695 wx.EVT_TOOL(self, id_delete, self._on_hide) 696 697 """ 698 self.toolbar.AddSeparator() 699 id_text = wx.NewId() 700 text = wx.ArtProvider.GetBitmap(wx.ART_CUT, wx.ART_TOOLBAR) 701 self.toolbar.AddSimpleTool(id_text, text, 702 'Remove Text from Plot', 'Removes text from plot') 703 704 self.toolbar.Realize() 705 wx.EVT_TOOL(self, id_text, self._on_removetext) 706 """ 694 wx.EVT_TOOL(self, id_hide, self._on_hide) 707 695 708 696 def _on_hide(self, event):
Note: See TracChangeset
for help on using the changeset viewer.