Ignore:
Timestamp:
Apr 28, 2021 10:37:09 AM (6 months ago)
Author:
vondreele
Message:

use our validatedtxtctrl for float input to MultiDataDialog?. Allows fractions, etc.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIctrlGUI.py

    r4887 r4897  
    26552655                valItem.Bind(wx.EVT_COMBOBOX,OnValItem)
    26562656            else:
    2657                 valItem = wx.TextCtrl(self.panel,value=format%(value),style=wx.TE_PROCESS_ENTER)
    2658                 valItem.Bind(wx.EVT_TEXT_ENTER,OnValItem)
    2659                 valItem.Bind(wx.EVT_KILL_FOCUS,OnValItem)
     2657                valItem = ValidatedTxtCtrl(self.panel,self.values,id,nDig=(10,4))
     2658                # valItem = wx.TextCtrl(self.panel,value=format%(value),style=wx.TE_PROCESS_ENTER)
     2659                # valItem.Bind(wx.EVT_TEXT_ENTER,OnValItem)
     2660                # valItem.Bind(wx.EVT_KILL_FOCUS,OnValItem)
    26602661            Indx[valItem] = [id,limits,format]
    26612662            lineSizer.Add(valItem,0,wx.ALIGN_CENTER)
Note: See TracChangeset for help on using the changeset viewer.