- Timestamp:
- Apr 14, 2009 8:00:18 PM (16 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
guiframe/utils.py
rac166e9c r74ad4b1 21 21 return output.lstrip().rstrip() 22 22 23 23 def 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 24 37 def check_value( item1, item2): 25 38 """
Note: See TracChangeset
for help on using the changeset viewer.