Changeset fa81e94 in sasview for src/sas/sasgui/guiframe/data_processor.py
- Timestamp:
- Nov 15, 2017 4:33:09 AM (6 years ago)
- Branches:
- 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
- Children:
- d4881f6a
- Parents:
- 7c487846
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/guiframe/data_processor.py
ra1b8fee rfa81e94 909 909 msg = "Edit axis doesn't understand this selection.\n" 910 910 msg += "Please select only one column" 911 raise ValueError, msg911 raise (ValueError, msg) 912 912 for (_, cell_col) in grid.selected_cells: 913 913 if cell_col != col: … … 915 915 msg += "this operation.\n" 916 916 msg += "Please select elements of the same col.\n" 917 raise ValueError, msg917 raise (ValueError, msg) 918 918 919 919 # Finally check the highlighted cell if any cells missing … … 922 922 msg = "No item selected.\n" 923 923 msg += "Please select only one column or one cell" 924 raise ValueError, msg924 raise (ValueError, msg) 925 925 return grid.selected_cells 926 926 … … 1326 1326 if sentence.strip() == "": 1327 1327 msg = "Select column values for x axis" 1328 raise ValueError, msg1328 raise (ValueError, msg) 1329 1329 except: 1330 1330 msg = "X axis value error." … … 1345 1345 if sentence.strip() == "": 1346 1346 msg = "select value for y axis" 1347 raise ValueError, msg1347 raise (ValueError, msg) 1348 1348 except: 1349 1349 msg = "Y axis value error." … … 1631 1631 1632 1632 # We need to grab a WxMenu handle here, otherwise the next one to grab 1633 # the handle will be treated as the Edi t Menu handle when checking in1633 # the handle will be treated as the Edi)t Menu handle when checking in 1634 1634 # on_menu_open event handler and thus raise an exception when it hits an 1635 1635 # unitialized object. Alternative is to comment out that whole section
Note: See TracChangeset
for help on using the changeset viewer.