Changeset 47d10a2 in sasview


Ignore:
Timestamp:
Jan 13, 2009 6:45:44 PM (16 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:
0f6d05f8
Parents:
e8d1066
Message:

working on close button model page

Location:
sansview/perspectives/fitting
Files:
2 edited

Legend:

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

    rd15c0202 r47d10a2  
    166166        self.sizer1.Add( self.btClose,(iy,ix),(1,1), wx.LEFT|wx.EXPAND|wx.ADJUST_MINSIZE, 0) 
    167167        #self.sizer1.Add( self.btClose,1, wx.LEFT | wx.BOTTOM , 5) 
    168  
     168        self.tcChi.Disable() 
    169169        ix= 0 
    170170        iy+=1 
  • sansview/perspectives/fitting/fitpanel.py

    rd15c0202 r47d10a2  
    171171             selected on that page. remove its reference into page_finder (fitting module) 
    172172        """ 
     173        print "model page", page_number, page 
    173174        if page!=None and page_number!=None: 
     175             
     176            self.nb.RemovePage(page_number) 
    174177            page.Destroy() 
    175             self.nb.RemovePage(page_number) 
    176178            self.model_page_number=None 
    177179            self.model_page=None 
     180            self.draw_model_name=None 
    178181            return  
    179182        try: 
     
    194197                if self.nb.GetPageText(page_number)== self.page_name: 
    195198                    self.draw_model_name=None 
    196                 
     199                if  page_number == 1: 
     200                    self.model_page=None 
     201                    self.draw_model_name=None 
    197202                selected_page.Destroy() 
    198203                self.nb.RemovePage(page_number) 
Note: See TracChangeset for help on using the changeset viewer.