Changeset 5251ec6 in sasview for src/sas/sasgui/perspectives/simulation/ShapeParameters.py
- Timestamp:
- Oct 11, 2018 2:20:56 PM (6 years ago)
- Branches:
- master, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1249
- Children:
- 98b9f32
- Parents:
- 67ed543
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/perspectives/simulation/ShapeParameters.py
ra1b8fee r5251ec6 10 10 from __future__ import print_function 11 11 12 import sys 13 from copy import deepcopy 14 12 15 import wx 13 import sys14 16 import wx.lib.newevent 15 from copy import deepcopy 16 import SimCanvas17 18 from . import SimCanvas 17 19 18 20 (CreateShapeEvent, EVT_ADD_SHAPE) = wx.lib.newevent.NewEvent() … … 201 203 n = 1 202 204 self.parameters = [] 203 keys = shape.params.keys() 204 keys.sort() 205 206 for item in keys: 205 206 for item in sorted(shape.params.keys()): 207 207 if item in ['contrast', 'order']: 208 208 continue … … 393 393 if not tmp==None: 394 394 self.current_shape.params[item[0]] = tmp 395 except :395 except Exception as exc: 396 396 print("Could not create") 397 print( sys.exc_value)397 print(exc) 398 398 399 399 def _onCreate(self, evt): … … 489 489 print("NOT YET IMPLMENTED") 490 490 print("renaming", self.shape_listbox.GetString(indices[0])) 491
Note: See TracChangeset
for help on using the changeset viewer.