Changeset 83ee3851 in sasview
- Timestamp:
- Jul 27, 2010 2:47:56 PM (15 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:
- 330c63b
- Parents:
- 9fb814a
- Location:
- guiframe
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
guiframe/data_loader.py
raebc4cc r83ee3851 245 245 246 246 name = parse_name(name=str(item.run[0]), expression="_") 247 if not name in parent.indice_load_data.keys():248 parent.indice_load_data[name] = 0249 else:247 #if not name in parent.indice_load_data.keys(): 248 # parent.indice_load_data[name] = 0 249 #else: 250 250 ## create a copy of the loaded data 251 251 … … 255 255 # counter arguments stronger? Is this feature developed 256 256 # to please at least 80% of the users or a special few? 257 parent.indice_load_data[name] += 1258 name = name + "(copy %i)"%parent.indice_load_data[name]257 #parent.indice_load_data[name] += 1 258 #name = name + "(copy %i)"%parent.indice_load_data[name] 259 259 260 260 new_plot.name = name -
guiframe/gui_manager.py
raebc4cc r83ee3851 919 919 try: 920 920 self._default_save_location = os.path.dirname(path) 921 922 #self.n_fileOpen += 1923 if self.n_fileOpen==1:924 pos= self.filemenu.GetMenuItemCount()-1925 #self.filemenu.InsertSeparator(pos )926 927 id = wx.NewId()928 filename= os.path.basename(path)929 dir= os.path.split(self._default_save_location)[1]930 title= str(os.path.join(dir,filename ))931 menuitem_name = str(self.n_fileOpen)+". "+ title932 position= self.filemenu.GetMenuItemCount()-2933 #self.filemenu.Insert(id=id, pos= position,text=menuitem_name,help=str(path) )934 #self.filePathList.append(( id, menuitem_name, path, title))935 #wx.EVT_MENU(self, id, self._onreloaFile)936 937 ## construct menu item for open file938 if self.n_fileOpen == self.n_maxfileopen +1:939 ## reach the maximun number of path to store940 self.n_fileOpen = 0941 id, menuitem_name , path, title = self.filePathList[0]942 self.filemenu.Delete(id)943 self.filePathList.pop(0)944 for item in self.filePathList:945 id, menuitem_name , path, title = item946 self.n_fileOpen += 1947 label = str(self.n_fileOpen)+". "+ title948 #self.filemenu.FindItemById(id).SetItemLabel(label)949 921 except: 950 raise 951 #pass 922 pass 952 923 return path 953 924
Note: See TracChangeset
for help on using the changeset viewer.