Changeset 1a3a03b in sasview for invariantview/perspectives/invariant
- Timestamp:
- Jul 22, 2010 10:09:58 AM (14 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:
- f5038c06
- Parents:
- bf59d40
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
invariantview/perspectives/invariant/invariant_panel.py
r3c44c66 r1a3a03b 229 229 id = wx.NewId() 230 230 self.popUpMenu.Append(id,name,str('')) 231 wx.EVT_MENU(self, id, self._back_to_bookmark) 231 wx.EVT_MENU(self, id, self._back_to_bookmark) 232 self._get_input_list() 232 233 self.new_state = False 233 234 … … 805 806 self.state.state_num = self.state.saved_state['state_num'] 806 807 self.state.state_list[str(self.state.state_num)] = self.state.clone_state()#copy.deepcopy(self.state.saved_state) 807 808 808 except: 809 809 pass … … 941 941 pass 942 942 if event != None: event.Skip()\ 943 944 def _get_input_list(self): 945 """ 946 get input_list; called by set_state 947 """ 948 # get state num of the last compute state 949 compute_num = self.state.saved_state['compute_num'] 950 # find values and put into the input list 951 for key1,value1 in self.state.state_list[str(compute_num)].iteritems(): 952 for key,value in self.state.input_list.iteritems(): 953 if key == key1: 954 self.state.input_list[key]=value1 955 break 943 956 944 957 def _set_bookmark_menu(self):
Note: See TracChangeset
for help on using the changeset viewer.