Ignore:
Timestamp:
Mar 14, 2012 11:02:45 AM (12 years ago)
Author:
Jae Cho <jhjcho@…>
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
Message:

solved no title to no plot problem

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansguiframe/src/sans/guiframe/data_processor.py

    red2d86e r25b7bf9  
    219219                self.axis_value.append(self.GetCellValue(cell_row, cell_col)) 
    220220            self.axis_label = self.GetCellValue(0, col) 
     221            if not self.axis_label: 
     222                self.axis_label = " " 
    221223         
    222224    def on_right_click(self, event): 
     
    577579        row = 0 
    578580        for col in range(grid.GetNumberCols()): 
    579             label = grid.GetCellValue(row, col) 
     581            label = grid.GetColLabelValue(int(col)) 
     582            #label = grid.GetCellValue(row, col) 
    580583            if label.strip() != "" : 
    581584                labels[label.strip()] = col 
     
    610613            if len(cell_list) == 1: 
    611614                 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) 
    613617                 label = create_label(col_name, row_min+1 , row_min+1) 
    614                  return  label,  col_name 
     618                 return  label,  col_title 
    615619            else: 
    616620                temp_list = copy.deepcopy(cell_list) 
     
    619623                row_min, col  = temp_list[0]     
    620624                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) 
    622627                index = 0 
    623628                for row in xrange(row_min, row_max +1): 
     
    638643                        label += create_label(col_name, None, row_max+1) 
    639644                    index += 1 
    640                 return label, col_name 
     645                return label, col_title 
    641646     
    642647    def on_close_page(self, event): 
Note: See TracChangeset for help on using the changeset viewer.