Changeset 10f3b23 in sasview for sansview/perspectives/fitting


Ignore:
Timestamp:
Aug 4, 2010 2:55:42 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:
a93f525
Parents:
af47c8d
Message:

coming remove hintpage combbox

File:
1 edited

Legend:

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

    rc4dd2fe r10f3b23  
    187187        self.Bind(basepage.EVT_NEXT_STATE, self._onRedo) 
    188188         
    189         #add default page 
     189       #add default page 
    190190        from hint_fitpage import HintFitPage 
    191191        self.hint_page = HintFitPage(self)  
    192         self.AddPage(page=self.hint_page, caption=self.hint_page.window_caption) 
     192        self.AddPage(page=self.hint_page, caption="Hint") 
     193        #Add the first fit page 
     194        self.add_empty_page() 
     195         
    193196        # increment number for model name 
    194197        self.count = 0 
     
    197200        self.Center() 
    198201         
    199     def set_data(self, list=[], state=None): 
    200         """ 
    201         Receive a list of data from data manager 
    202         """ 
    203         if len(list) ==0: 
    204             return  
    205         #pos = self.GetPageIndex(self.hint_page) 
    206         #self.SetSelection(pos) 
    207         self.hint_page.set_data(list=list) 
    208        
    209202    def set_state(self, state): 
    210203        """ 
     
    285278        """ 
    286279        self.manager = manager 
    287         self.hint_page.set_manager(self.manager) 
     280     
    288281         
    289282    def set_owner(self,owner): 
     
    330323        name = "Fit Page" 
    331324        type = 'empty' 
    332         print "get_page_info",data.is_data 
    333325        if data is not None and hasattr(data, "is_data"): 
    334326            if data.is_data: 
     
    409401        page_info = self.get_page_info(data=data) 
    410402        type = page_info.type 
    411         print "add_fit_page",page_info.type 
    412403        npages = len(self.opened_pages.keys()) 
    413404        if npages == 0: 
Note: See TracChangeset for help on using the changeset viewer.