Changeset 25b7bf9 in sasview for sansguiframe/src
- Timestamp:
- Mar 14, 2012 1:02:45 PM (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:
- 4e0dfe4
- Parents:
- ed2d86e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansguiframe/src/sans/guiframe/data_processor.py
red2d86e r25b7bf9 219 219 self.axis_value.append(self.GetCellValue(cell_row, cell_col)) 220 220 self.axis_label = self.GetCellValue(0, col) 221 if not self.axis_label: 222 self.axis_label = " " 221 223 222 224 def on_right_click(self, event): … … 577 579 row = 0 578 580 for col in range(grid.GetNumberCols()): 579 label = grid.GetCellValue(row, col) 581 label = grid.GetColLabelValue(int(col)) 582 #label = grid.GetCellValue(row, col) 580 583 if label.strip() != "" : 581 584 labels[label.strip()] = col … … 610 613 if len(cell_list) == 1: 611 614 row_min, col = cell_list[0] 612 col_name = grid.GetCellValue(0, col) 615 col_name = grid.GetColLabelValue(int(col))#grid.GetCellValue(0, col) 616 col_title = grid.GetCellValue(0, col) 613 617 label = create_label(col_name, row_min+1 , row_min+1) 614 return label, col_ name618 return label, col_title 615 619 else: 616 620 temp_list = copy.deepcopy(cell_list) … … 619 623 row_min, col = temp_list[0] 620 624 row_max, _ = temp_list[length-1] 621 col_name = grid.GetCellValue(0, col) 625 col_name = grid.GetColLabelValue(int(col))#grid.GetCellValue(0, col) 626 col_title = grid.GetCellValue(0, col) 622 627 index = 0 623 628 for row in xrange(row_min, row_max +1): … … 638 643 label += create_label(col_name, None, row_max+1) 639 644 index += 1 640 return label, col_ name645 return label, col_title 641 646 642 647 def on_close_page(self, event):
Note: See TracChangeset
for help on using the changeset viewer.