Changeset 953


Ignore:
Timestamp:
Feb 24, 2005, 4:12:14 PM (20 years ago)
Author:
duncan
Message:

add vert was broken. Put code back that had somehow gone missing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/ga/storm_surge/pmesh/pmesh.py

    r922 r953  
    567567            #Since the new vertex may be off screen
    568568            self.ResizeToFit()
     569        else:
     570            print "bad values"
    569571   
    570572    def windowDefault (self, parent):
     
    14171419        self.y  = 0
    14181420        self.xyValuesOk = False
     1421 
     1422
     1423    def apply(self):
     1424        """
     1425        check entered values
     1426        """
     1427        try:
     1428            self.x = float(self.xstr.get())
     1429            self.y = float(self.ystr.get())
     1430            self.xyValuesOk = True
     1431           
     1432        except ValueError:
     1433            showerror('Bad Vertex values',
     1434                                   'X Y values are not numbers.')
    14191435       
    14201436
Note: See TracChangeset for help on using the changeset viewer.