Changeset 1367b08 in sasview for prview/perspectives


Ignore:
Timestamp:
Jun 14, 2009 6:50:24 AM (16 years ago)
Author:
Mathieu Doucet <doucetm@…>
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:
c405c69
Parents:
a8d92db
Message:

prview: force Enter key processing on form (not default on linux apparently).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • prview/perspectives/pr/inversion_panel.py

    rceaf16e r1367b08  
    472472            #label_sunits1 = wx.StaticText(self, -1, "[A^(-1)]") 
    473473            label_sunits2 = wx.StaticText(self, -1, "[A^(-1)]", size=(55,20)) 
    474             self.sheight_ctl = wx.TextCtrl(self, -1, size=(60,20)) 
    475             self.swidth_ctl = wx.TextCtrl(self, -1, size=(60,20)) 
     474            self.sheight_ctl = wx.TextCtrl(self, -1, style=wx.TE_PROCESS_ENTER, size=(60,20)) 
     475            self.swidth_ctl = wx.TextCtrl(self, -1, style=wx.TE_PROCESS_ENTER, size=(60,20)) 
    476476            self.sheight_ctl.SetToolTipString("Enter slit height in units of Q or leave blank.") 
    477477            self.swidth_ctl.SetToolTipString("Enter slit width in units of Q or leave blank.") 
     
    503503        #label_qunits1 = wx.StaticText(self, -1, "[A^(-1)]") 
    504504        label_qunits2 = wx.StaticText(self, -1, "[A^(-1)]", size=(55,20)) 
    505         self.qmin_ctl = wx.TextCtrl(self, -1, size=(60,20)) 
    506         self.qmax_ctl = wx.TextCtrl(self, -1, size=(60,20)) 
     505        self.qmin_ctl = wx.TextCtrl(self, -1, style=wx.TE_PROCESS_ENTER, size=(60,20)) 
     506        self.qmax_ctl = wx.TextCtrl(self, -1, style=wx.TE_PROCESS_ENTER, size=(60,20)) 
    507507        self.qmin_ctl.SetToolTipString("Select a lower bound for Q or leave blank.") 
    508508        self.qmax_ctl.SetToolTipString("Select an upper bound for Q or leave blank.") 
     
    547547        #self.label_sugg.Hide() 
    548548         
    549         self.nfunc_ctl = wx.TextCtrl(self, -1, size=(60,20)) 
     549        self.nfunc_ctl = wx.TextCtrl(self, -1, style=wx.TE_PROCESS_ENTER, size=(60,20)) 
    550550        self.nfunc_ctl.SetToolTipString("Number of terms in the expansion.") 
    551         self.alpha_ctl = wx.TextCtrl(self, -1, size=(60,20)) 
     551        self.alpha_ctl = wx.TextCtrl(self, -1, style=wx.TE_PROCESS_ENTER, size=(60,20)) 
    552552        self.alpha_ctl.SetToolTipString("Control parameter for the size of the regularization term.") 
    553         self.dmax_ctl  = wx.TextCtrl(self, -1, size=(60,20)) 
     553        self.dmax_ctl  = wx.TextCtrl(self, -1, style=wx.TE_PROCESS_ENTER, size=(60,20)) 
    554554        self.dmax_ctl.SetToolTipString("Maximum distance between any two points in the system.") 
    555555        id = wx.NewId() 
Note: See TracChangeset for help on using the changeset viewer.