Changeset 2719255 in sasview for sansguiframe/src/sans


Ignore:
Timestamp:
Sep 14, 2011 7:13:20 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:
0b0b7de
Parents:
55d2f7e
Message:

minor comment added

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansguiframe/src/sans/guiframe/data_panel.py

    r6a7cf2c r2719255  
    279279        self.bt_freeze = wx.Button(self, wx.NewId(), "Freeze Theory",  
    280280                                   size=(BUTTON_WIDTH, -1)) 
    281         self.bt_freeze.SetToolTipString("To trigger freeze a theory") 
     281        freeze_tip = "To trigger freeze a theory: making a copy to Data box,\n" 
     282        freeze_tip += "     so that it can act like a real data set." 
     283        self.bt_freeze.SetToolTipString(freeze_tip) 
    282284        wx.EVT_BUTTON(self, self.bt_freeze.GetId(), self.on_freeze) 
    283285        #hide plot 
     
    736738    def on_freeze(self, event): 
    737739        """ 
     740        On freeze to make a theory to a data set 
    738741        """ 
    739742        _, theory_id, state_id = self.set_data_helper() 
    740         self.parent.freeze(data_id=state_id, theory_id=theory_id) 
    741          
     743        if len(theory_id) > 0: 
     744            self.parent.freeze(data_id=state_id, theory_id=theory_id) 
     745            msg = "Freeze Theory:" 
     746            msg += " The theory(s) copied to the Data box as a data set." 
     747        else: 
     748            msg = "Freeze Theory: Requires at least one theory checked." 
     749        wx.PostEvent(self.parent, StatusEvent(status=msg)) 
     750             
    742751    def set_active_perspective(self, name): 
    743752        """ 
Note: See TracChangeset for help on using the changeset viewer.