Changeset 88f286d in sasview


Ignore:
Timestamp:
May 24, 2011 4:29:55 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:
bc03f06
Parents:
57b551e
Message:

Added model number in the title of the model box

File:
1 edited

Legend:

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

    rc1e6400 r88f286d  
    3939        """ 
    4040        BasicPage.__init__(self, parent, color=color) 
    41         self.model_name_txt = None 
     41         
    4242        ## draw sizer 
    4343        self._fill_datainfo_sizer() 
     
    422422        sizer_data.Add(wx.StaticText(self, -1, 'Name : ')) 
    423423        sizer_data.Add(self.dataSource ) 
    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) 
     424        sizer_data.Add( (0,5) ) 
    428425        """ 
    429426        #---------sizer 2 draw-------------------------------- 
     
    457454        self.formfactorbox = None 
    458455        self.multifactorbox = None 
    459         box_description= wx.StaticBox(self, -1,str(title)) 
    460         boxsizer1 = wx.StaticBoxSizer(box_description, wx.VERTICAL) 
    461           
     456        self.mbox_description= wx.StaticBox(self, -1,str(title)) 
     457        boxsizer1 = wx.StaticBoxSizer(self.mbox_description, wx.VERTICAL) 
     458         
    462459        id = wx.NewId() 
    463460        self.model_help =wx.Button(self,id,'Details', size=(80,23)) 
     
    10841081    
    10851082            self._manager._on_model_panel(evt=evt) 
     1083            self.mbox_description.SetLabel("Model [%s]" % str(self.model.name)) 
    10861084            self.state.model = self.model.clone() 
    10871085            self.state.model.name = self.model.name 
    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') 
     1086 
    10911087            self._draw_model() 
    10921088        if event != None: 
Note: See TracChangeset for help on using the changeset viewer.