Ignore:
Timestamp:
Jan 20, 2011 10:05:18 AM (14 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:
8dc02d8b
Parents:
19637b1
Message:

Added callback(textEnter) method on param value changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • calculatorview/perspectives/calculator/resolution_calculator_panel.py

    r5cc393b8 r943cacb  
    958958        self.sigma_r_txt.SetLabel('Sigma_x:') 
    959959        self.sigma_phi_txt.SetLabel('Sigma_y:') 
     960        self._onparamEnter() 
    960961         
    961962    def _on_rp_coordinate(self,event=None): 
     
    969970        self.sigma_r_txt.SetLabel('Sigma_r:   ') 
    970971        self.sigma_phi_txt.SetLabel('Sigma_phi:') 
     972        self._onparamEnter() 
    971973         
    972974    def _status_info(self, msg = '', type = "update"): 
     
    978980                             StatusEvent(status = msg, type = type )) 
    979981 
    980                    
     982 
     983    def _onparamEnter(self, event = None): 
     984        """ 
     985        On Text_enter_callback, perform compute 
     986        """ 
     987        self.on_compute() 
     988         
     989         
    981990class ResolutionWindow(wx.Frame): 
    982991    def __init__(self, parent = None, title = "SANS Resolution Estimator", 
Note: See TracChangeset for help on using the changeset viewer.