Changeset c966e1c in sasview for sansguiframe


Ignore:
Timestamp:
Aug 17, 2011 7:39:33 AM (13 years ago)
Author:
Jessica Tumarkin <jtumarki@…>
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:
1c153e9
Parents:
d4edd72
Message:

Added menus for toggling legend, changing legend location

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansguiframe/src/sans/guiframe/local_perspectives/plotting/Plotter1D.py

    rfe857e2 rc966e1c  
    350350        self._slicerpop.Append(id, '&Copy to Clipboard', 'Copy to the clipboard') 
    351351        wx.EVT_MENU(self, id, self.OnCopyFigureMenu) 
     352         
     353        id = wx.NewId() 
     354        self._slicerpop.AppendSeparator() 
     355        self._slicerpop.Append(id, '&Toggle Legend On/Off', 'Toggle Legend On/Off') 
     356        wx.EVT_MENU(self, id, self.onLegend) 
     357         
     358        loc_menu = wx.Menu() 
     359        for label in self._loc_labels: 
     360            id = wx.NewId() 
     361            loc_menu.Append(id, str(label), str(label)) 
     362            wx.EVT_MENU(self, id, self.onChangeLegendLoc) 
     363        id = wx.NewId() 
     364        self._slicerpop.AppendMenu(id, '&Modify Legend Location', loc_menu) 
    352365         
    353366        self._slicerpop.AppendSeparator() 
Note: See TracChangeset for help on using the changeset viewer.