- Timestamp:
- Aug 4, 2010 2:55:42 PM (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:
- a93f525
- Parents:
- af47c8d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/perspectives/fitting/fitpanel.py
rc4dd2fe r10f3b23 187 187 self.Bind(basepage.EVT_NEXT_STATE, self._onRedo) 188 188 189 189 #add default page 190 190 from hint_fitpage import HintFitPage 191 191 self.hint_page = HintFitPage(self) 192 self.AddPage(page=self.hint_page, caption=self.hint_page.window_caption) 192 self.AddPage(page=self.hint_page, caption="Hint") 193 #Add the first fit page 194 self.add_empty_page() 195 193 196 # increment number for model name 194 197 self.count = 0 … … 197 200 self.Center() 198 201 199 def set_data(self, list=[], state=None):200 """201 Receive a list of data from data manager202 """203 if len(list) ==0:204 return205 #pos = self.GetPageIndex(self.hint_page)206 #self.SetSelection(pos)207 self.hint_page.set_data(list=list)208 209 202 def set_state(self, state): 210 203 """ … … 285 278 """ 286 279 self.manager = manager 287 self.hint_page.set_manager(self.manager)280 288 281 289 282 def set_owner(self,owner): … … 330 323 name = "Fit Page" 331 324 type = 'empty' 332 print "get_page_info",data.is_data333 325 if data is not None and hasattr(data, "is_data"): 334 326 if data.is_data: … … 409 401 page_info = self.get_page_info(data=data) 410 402 type = page_info.type 411 print "add_fit_page",page_info.type412 403 npages = len(self.opened_pages.keys()) 413 404 if npages == 0:
Note: See TracChangeset
for help on using the changeset viewer.