Changeset d03a356 in sasview for sansguiframe/src/sans/guiframe/data_processor.py
- Timestamp:
- Sep 23, 2011 11:44:43 AM (13 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:
- a582d28
- Parents:
- 5e48acb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansguiframe/src/sans/guiframe/data_processor.py
rdadf255 rd03a356 75 75 self.data_inputs = {} 76 76 self.data_outputs = {} 77 self.data = {}77 self.data = None 78 78 self._cols = 50 79 79 self._rows = 51 … … 310 310 self.manager = manager 311 311 self.data = data 312 #add empty page 313 self.add_empty_page() 314 312 315 self.Bind(wx.aui.EVT_AUINOTEBOOK_PAGE_CLOSE, self.on_close_page) 313 316 317 def add_empty_page(self): 318 """ 319 """ 320 grid = GridPage(self, panel=self.parent) 321 self.AddPage(grid, "", True) 322 pos = self.GetPageIndex(grid) 323 title = "Batch " + str(self.GetPageCount()) 324 self.SetPageText(pos, title) 325 self.SetSelection(pos) 326 return grid 327 314 328 def enable_close_button(self): 315 329 """ … … 434 448 if data_outputs is None or data_outputs == {}: 435 449 return 436 grid = GridPage(self, panel=self.parent) 450 grid = self.add_empty_page() 451 #grid = GridPage(self, panel=self.parent) 437 452 grid.set_data(data_inputs, data_outputs) 438 self.AddPage(grid, "") 439 pos = self.GetPageIndex(grid) 440 title = "Batch " + str(self.GetPageCount()) 441 self.SetPageText(pos, title) 453 #self.AddPage(grid, "", True) 454 #pos = self.GetPageIndex(grid) 455 #title = "Batch " + str(self.GetPageCount()) 456 #self.SetPageText(pos, title) 457 #self.SetSelection(pos) 442 458 443 459 def add_column(self):
Note: See TracChangeset
for help on using the changeset viewer.