Changeset b3e8629 in sasview for src/sas/qtgui/Plotting/PlotProperties.py
- Timestamp:
- Nov 9, 2017 8:41:54 AM (7 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:
- cee5c78
- Parents:
- 749b715
- git-author:
- Piotr Rozyczko <rozyczko@…> (10/26/17 03:13:05)
- git-committer:
- Piotr Rozyczko <rozyczko@…> (11/09/17 08:41:54)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Plotting/PlotProperties.py
- Property mode changed from 100644 to 100755
rcd2cc745 rb3e8629 26 26 27 27 # Fill out the color combobox 28 self.cbColor.addItems( COLORS.keys()[:-1])28 self.cbColor.addItems(list(COLORS.keys())[:-1]) 29 29 # data1d.custom_color can now be a simple integer, 30 30 # specifying COLORS dict index or a string containing … … 34 34 else: 35 35 # Need the Custom entry here. "Custom" is always last. 36 self.cbColor.addItems([ COLORS.keys()[-1]])37 self.cbColor.setCurrentIndex( COLORS.keys().index("Custom"))36 self.cbColor.addItems([list(COLORS.keys())[-1]]) 37 self.cbColor.setCurrentIndex(list(COLORS.keys()).index("Custom")) 38 38 39 39 # Fill out the marker combobox 40 self.cbShape.addItems( SHAPES.keys())40 self.cbShape.addItems(list(SHAPES.keys())) 41 41 try: 42 42 self.cbShape.setCurrentIndex(self._marker) … … 83 83 # Add Custom to the color combo box 84 84 self.cbColor.addItems(["Custom"]) 85 self.cbColor.setCurrentIndex( COLORS.keys().index("Custom"))85 self.cbColor.setCurrentIndex(list(COLORS.keys()).index("Custom")) 86 86 # unblock currentIndexChanged 87 87 self.cbColor.blockSignals(False)
Note: See TracChangeset
for help on using the changeset viewer.