Changeset 74ad4b1 in sasview


Ignore:
Timestamp:
Apr 14, 2009 6:00:18 PM (16 years ago)
Author:
Gervaise Alina <gervyh@…>
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:
179a411
Parents:
69bee6d
Message:

checking txtcrtl

File:
1 edited

Legend:

Unmodified
Added
Removed
  • guiframe/utils.py

    rac166e9c r74ad4b1  
    2121    return output.lstrip().rstrip() 
    2222 
    23  
     23def check_float(item): 
     24    """ 
     25       @param item2: txtcrtl containing the maximum value 
     26    """ 
     27    flag= True 
     28    try: 
     29        mini = float(item.GetValue()) 
     30        item.SetBackgroundColour(wx.WHITE) 
     31        item.Refresh() 
     32    except: 
     33        flag = False 
     34        item.SetBackgroundColour("pink") 
     35        item.Refresh() 
     36    return flag 
    2437def check_value( item1, item2): 
    2538    """ 
Note: See TracChangeset for help on using the changeset viewer.