Changeset c1e6400 in sasview


Ignore:
Timestamp:
May 24, 2011 3:22:50 PM (14 years ago)
Author:
Gervaise Alina <gervyh@…>
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:
a4ffc36
Parents:
8e33400
Message:

add current model name to panel

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansview/perspectives/fitting/fitpage.py

    r8e33400 rc1e6400  
    3939        """ 
    4040        BasicPage.__init__(self, parent, color=color) 
    41          
     41        self.model_name_txt = None 
    4242        ## draw sizer 
    4343        self._fill_datainfo_sizer() 
     
    420420        #self.dataSource.SetEditable(False) 
    421421        self.dataSource.SetMinSize((_DATA_BOX_WIDTH, -1)) 
    422         sizer_data.Add(wx.StaticText(self, -1, 'Data : ')) 
     422        sizer_data.Add(wx.StaticText(self, -1, 'Name : ')) 
    423423        sizer_data.Add(self.dataSource ) 
    424         sizer_data.Add( (0,5) ) 
     424        self.model_name_txt = wx.StaticText(self, -1, " [No model]", 
     425                                 style=wx.ALIGN_LEFT) 
     426        self.model_name_txt.SetForegroundColour('blue') 
     427        sizer_data.Add(self.model_name_txt) 
    425428        """ 
    426429        #---------sizer 2 draw-------------------------------- 
     
    10831086            self.state.model = self.model.clone() 
    10841087            self.state.model.name = self.model.name 
    1085            
     1088            if self.model_name_txt is not None: 
     1089                self.model_name_txt.SetLabel(" [%s]" % str(self.model.name)) 
     1090                self.model_name_txt.SetForegroundColour('blue') 
    10861091            self._draw_model() 
    10871092        if event != None: 
Note: See TracChangeset for help on using the changeset viewer.