Ignore:
Timestamp:
Sep 3, 2011 5:17:11 PM (13 years ago)
Author:
Jae Cho <jhjcho@…>
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:
53cf669
Parents:
dc51a7f
Message:

added capability of modifying the Graph window caption

Location:
sansguiframe/src/sans/guiframe/local_perspectives/plotting
Files:
2 edited

Legend:

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

    rdc51a7f r37c36d9  
    5050    window_name = "plotpanel" 
    5151    ## Title to appear on top of the window 
    52     window_caption = "Plot Panel" 
     52    window_caption = "Graph" 
    5353    ## Flag to tell the GUI manager that this panel is not 
    5454    #  tied to any perspective 
     
    458458        self._slicerpop.AppendSeparator() 
    459459        id = wx.NewId() 
    460         self._slicerpop.Append(id, '&Reset Graph') 
     460        self._slicerpop.Append(id, '&Reset Range') 
    461461        wx.EVT_MENU(self, id, self.onResetGraph)   
    462462        try: 
     
    466466            pos_x, pos_y = self.toolbar.GetPositionTuple() 
    467467            pos = (pos_x, pos_y + 5) 
    468  
     468             
     469        self._slicerpop.AppendSeparator() 
     470        id = wx.NewId() 
     471        self._slicerpop.Append(id, '&Window Title') 
     472        wx.EVT_MENU(self, id, self.onChangeCaption) 
     473         
    469474        self.PopupMenu(self._slicerpop, pos) 
    470475         
  • sansguiframe/src/sans/guiframe/local_perspectives/plotting/Plotter2D.py

    rdc51a7f r37c36d9  
    390390            pos = (pos_x, pos_y + 5) 
    391391        self.PopupMenu(slicerpop, pos) 
     392         
     393        slicerpop.AppendSeparator() 
     394        id = wx.NewId() 
     395        slicerpop.Append(id, '&Window Title') 
     396        wx.EVT_MENU(self, id, self.onChangeCaption) 
     397         
     398        self.PopupMenu(self._slicerpop, pos) 
    392399             
    393400    def onEditLabels(self, event): 
Note: See TracChangeset for help on using the changeset viewer.