Ignore:
Timestamp:
Jun 11, 2008 2:10:48 PM (16 years ago)
Author:
Mathieu Doucet <doucetm@…>
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:
4101eea
Parents:
de9483d
Message:

Improved context menu functionality

File:
1 edited

Legend:

Unmodified
Added
Removed
  • guiframe/local_perspectives/plotting/plotting.py

    r278cc25 r2310d69  
    118118         
    119119        slicerpop.AppendSeparator() 
    120         item_list = self.parent.get_context_menu() 
     120        item_list = self.parent.get_context_menu(self.graph) 
    121121        if not item_list==None: 
    122122            for item in item_list: 
     
    131131        slicerpop.AppendSeparator() 
    132132         
     133        #id = wx.NewId() 
     134        #slicerpop.Append(id, '&Toggle Linear/Log scale') 
     135        #wx.EVT_MENU(self, id, self._onToggleScale) 
     136 
    133137        id = wx.NewId() 
    134         slicerpop.Append(id, '&Toggle Linear/Log scale') 
    135         wx.EVT_MENU(self, id, self._onToggleScale) 
     138        slicerpop.Append(id, '&Change scale') 
     139        wx.EVT_MENU(self, id, self._onProperties) 
    136140 
    137141        pos = event.GetPosition() 
Note: See TracChangeset for help on using the changeset viewer.