Ignore:
Timestamp:
May 1, 2017 5:00:53 PM (8 years ago)
Author:
GitHub <noreply@…>
Children:
733cdcd
Parents:
b9d74f3 (diff), c00a797a (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
Paul Kienzle <pkienzle@…> (05/01/17 17:00:53)
git-committer:
GitHub <noreply@…> (05/01/17 17:00:53)
Message:

Merge branch 'master' into raise

Location:
src/sas/sasgui/perspectives/simulation
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasgui/perspectives/simulation/ShapeParameters.py

    rd85c194 ra1b8fee  
    88copyright 2009, University of Tennessee 
    99""" 
     10from __future__ import print_function 
     11 
    1012import wx 
    1113import sys 
     
    312314            self.parent.GetSizer().Layout() 
    313315        except: 
    314             print "TODO: move the Layout call of editShape up to the caller" 
     316            print("TODO: move the Layout call of editShape up to the caller") 
    315317 
    316318    def _readCtrlFloat(self, ctrl): 
     
    392394                    self.current_shape.params[item[0]] = tmp  
    393395        except: 
    394             print "Could not create" 
    395             print sys.exc_value 
     396            print("Could not create") 
     397            print(sys.exc_value) 
    396398                 
    397399    def _onCreate(self, evt): 
     
    485487        indices = self.shape_listbox.GetSelections() 
    486488        if len(indices)>0: 
    487             print "NOT YET IMPLMENTED" 
    488             print "renaming", self.shape_listbox.GetString(indices[0]) 
    489                  
     489            print("NOT YET IMPLMENTED") 
     490            print("renaming", self.shape_listbox.GetString(indices[0])) 
     491                 
  • src/sas/sasgui/perspectives/simulation/ShapeAdapter.py

    r959eb01 rb9d74f3  
    8787            self.sim_canvas._model_changed() 
    8888        else: 
    89             raise ValueError, "SimShapeVisitor: Wrong class for visited object" 
     89            raise ValueError("SimShapeVisitor: Wrong class for visited object") 
    9090         
    9191         
     
    115115            self.sim_canvas._model_changed() 
    116116        else: 
    117             raise ValueError, "SimShapeVisitor: Wrong class for visited object" 
     117            raise ValueError("SimShapeVisitor: Wrong class for visited object") 
    118118         
    119119     
     
    130130            shape.accept_update(self) 
    131131        else: 
    132             raise ValueError, "ShapeAdapter: Shape [%s] not in list" % shape.name 
     132            raise ValueError("ShapeAdapter: Shape [%s] not in list" % shape.name) 
    133133 
Note: See TracChangeset for help on using the changeset viewer.