Changeset ef67145 in sasview for fittingview/src/sans


Ignore:
Timestamp:
Sep 28, 2012 2:02:40 PM (12 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:
41b1805
Parents:
4550a5a
Message:

added cat modify button

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fittingview/src/sans/perspectives/fitting/basepage.py

    rc35e6901 ref67145  
    20292029                         StatusEvent(status=msg, info="error")) 
    20302030        self._populate_box(self.formfactorbox, m_list) 
     2031     
     2032    def _on_modify_cat(self, event=None):   
     2033        self._manager.parent.on_category_panel(event)   
    20312034         
    20322035    def _show_combox(self, event=None): 
     
    34773480        #                    id=self.plugin_rbutton.GetId()) 
    34783481        #MAC needs SetValue 
    3479         sizer_cat_box.Add(self.categorybox, 1, wx.LEFT|wx.RIGHT|wx.EXPAND, 2.5) 
     3482         
     3483        show_cat_button = wx.Button(self, -1, "Modify") 
     3484        cat_tip = "Modify model categories \n" 
     3485        cat_tip += "(also accessible from the menu bar)." 
     3486        show_cat_button.SetToolTip( wx.ToolTip(cat_tip) ) 
     3487        show_cat_button.Bind(wx.EVT_BUTTON, self._on_modify_cat) 
     3488        sizer_cat_box.Add(self.categorybox, 1, wx.RIGHT, 3) 
     3489        sizer_cat_box.Add((10,10)) 
     3490        sizer_cat_box.Add(show_cat_button) 
    34803491        #self.shape_rbutton.SetValue(True) 
    34813492       
Note: See TracChangeset for help on using the changeset viewer.