Changeset 2bd9927 in sasview
- Timestamp:
- Feb 27, 2009 1:27:41 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:
- 1acbf0a
- Parents:
- adde6e3
- Location:
- guiframe
- Files:
-
- 1 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
guiframe/aboutbox.py
r278cc25 r2bd9927 67 67 # Mac doesn't display images with transparent background so well, keep it for Windows 68 68 image = file_dir+"/images/angles_flat.png" 69 69 70 if os.path.isfile(config._corner_image): 70 71 image = config._corner_image -
guiframe/license.txt
racb1ad1 r2bd9927 7 7 the following paper in your publication: 8 8 9 P. Butler, M. Doucet, G. Alina, R. Cortes Hernandez, J. Zhou, P. Kienzle, 9 P. Butler, M. Doucet, G. Alina, R. Cortes Hernandez, J. Zhou, P. Kienzle,Jae Hie Cho 10 10 "SANS analysis software", to be published. 11 11 -
guiframe/utils.py
r0d9dae8 r2bd9927 2 2 Contains common classes 3 3 """ 4 import wx 4 import wx,re 5 5 6 6 def format_number(value, high=False): … … 28 28 def set_graph(self, graph): 29 29 self.graph = graph 30 31 32 def split_list(separator, mylist, n=0): 33 """ 34 @return a list of string without white space of separator 35 @param separator: the string to remove 36 """ 37 list=[] 38 for item in mylist: 39 if re.search( separator,item)!=None: 40 if n >0: 41 word =re.split(separator,item,int(n)) 42 else: 43 word =re.split( separator,item) 44 for new_item in word: 45 if new_item.lstrip().rstrip() !='': 46 list.append(new_item.lstrip().rstrip()) 47 return list 48 def split_text(separator, string1, n=0): 49 """ 50 @return a list of string without white space of separator 51 @param separator: the string to remove 52 """ 53 list=[] 54 if re.search( separator,string1)!=None: 55 if n >0: 56 word =re.split(separator,string1,int(n)) 57 else: 58 word =re.split(separator,string1) 59 for item in word: 60 if item.lstrip().rstrip() !='': 61 list.append(item.lstrip().rstrip()) 62 return list 63 def look_for_tag( string1,begin, end=None ): 64 """ 65 @note: this method remove the begin and end tags given by the user 66 from the string . 67 @param begin: the initial tag 68 @param end: the final tag 69 @param string: the string to check 70 @return: begin_flag==True if begin was found, 71 end_flag==if end was found else return false, false 72 73 """ 74 begin_flag= False 75 end_flag= False 76 if re.search( begin,string1)!=None: 77 begin_flag= True 78 if end !=None: 79 if re.search(end,string1)!=None: 80 end_flag= True 81 return begin_flag, end_flag 82 83
Note: See TracChangeset
for help on using the changeset viewer.