''' called by pressing the OK button - validates data, and if no error
sets a good return code and dismisses the dialog by calling OnCancel
'''
try:
X = self.GridLinesX.get()
except ValueError:
X = 0
try:
Y = self.GridLinesY.get()
except ValueError:
Y = 0
try:
Pad = self.PadAmount.get()
except ValueError:
Pad = -1
if X < 1 or X > self.ImageCount:
tkMessageBox.showerror( 'Cells across invalid',
'Cells across must be less than %d' % self.ImageCount )
return clickhere www.reed-one.skyblog.com
if Y < 1 or Y > self.ImageCount:
tkMessageBox.showerror( 'Cells down invalid',
'Cells down must be less than %d' % self.ImageCount )
return clickhere www.polomar23.skyblog.com
try:
if X * Y < self.ImageCount: www.reed-one.skyblog.com



