Ignore:
Timestamp:
Apr 28, 2009 5:04:36 PM (16 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:
75d0352
Parents:
cdbe88e
Message:

made text P*S hide and show concorrently with structure combobox in control panels

File:
1 edited

Legend:

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

    rcdbe88e r5dc80a0  
    775775            if flag and (class_name in self.model_list_box["Structure Factors"]): 
    776776                self.structurebox.Enable() 
     777                self.text2.Enable() 
    777778                items = self.structurebox.GetItems() 
    778779                self.sizer1.Layout() 
     
    830831                        self.structurebox.Enable() 
    831832                        self.structurebox.SetSelection(0) 
     833                        self.text2.Enable() 
    832834                    else: 
    833835                        self.structurebox.Disable() 
    834836                        self.structurebox.SetSelection(0) 
     837                        self.text2.Disable() 
    835838                         
    836839                    self.shape_rbutton.SetValue(True) 
     
    853856                    self.structurebox.SetSelection(0) 
    854857                    self.structurebox.Disable() 
     858                    self.text2.Disable()                     
    855859                    ## fill the form factor list with new model 
    856860                    self._populate_box(self.formfactorbox, list) 
     
    940944            self.structurebox.SetSelection(0) 
    941945            self.structurebox.Disable() 
    942   
     946            self.text2.Disable() 
     947              
    943948            if self.model.__class__ in self.model_list_box["P(Q)*S(Q)"]: 
    944949                self.structurebox.Enable() 
    945              
     950                self.text2.Enable()             
    946951         
    947952        ## check model type to show sizer 
Note: See TracChangeset for help on using the changeset viewer.