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/calculator_widgets.py

    rb0ab6cb r943cacb  
    1616        Binds the appropriate events for user interactions. 
    1717    """ 
    18     def __init__(self, *args, **kwds): 
     18    def __init__(self, parent = None, *args, **kwds): 
    1919         
    20         wx.TextCtrl.__init__(self, *args, **kwds) 
     20        wx.TextCtrl.__init__(self, parent, *args, **kwds) 
    2121         
    2222        ## Set to True when the mouse is clicked while the whole  
     
    2828        self.Bind(wx.EVT_LEFT_UP, self._highlight_text) 
    2929        self.Bind(wx.EVT_SET_FOCUS, self._on_set_focus) 
     30        self.Bind(wx.EVT_TEXT_ENTER, parent._onparamEnter ) 
    3031 
    3132    def _on_set_focus(self, event): 
Note: See TracChangeset for help on using the changeset viewer.