return
if X * Y < self.ImageCount:
tkMessageBox.showerror( 'Not enough cells',
'Cells across x cells down must be at least %d' % self.ImageCount )
return
if Pad < 0 or Pad > 25:
tkMessageBox.showerror( 'Pad amount invalid',
'The per cell pad amount must be between 0 and 25 pixels' )
return
# if we got here we passed validation
self.OKPressed = 1
# finish by pressing the Cancel button
self.OnCancel()
def OnCancel(self, event=None):
# on cancel we simply terminate the message loop
self.quit()
def Do(Environment): clickhere www.polomar.hi5.com ♪ CocuUu ♫♪: Cocutsa iub...
# we need at least two images for this to work
if len(App.Documents) < 2:
App.Do(Environment, 'MsgBox', {
'Buttons': App.Constants.MsgButtons.OK,
'Icon': App.Constants.MsgIcons.Stop,
'Text': 'This script requires at least two open images.'Cells down must be less than %d' % self.ImageCount )
return
if X * Y < self.ImageCount:
tkMessageBox.showerror( 'Not enough cells',
'Cells across x cells down must be at least %d' % self.ImageCount )
return
if Pad < 0 or Pad > 25:
tkMessageBox.showerror( 'Pad amount invalid',
'The per cell pad amount must be between 0 and 25 pixels' )
return
# if we got here we passed validation
self.OKPressed = 1
# finish by pressing the Cancel button
self.OnCancel()
def OnCancel(self, event=None):
# on cancel we simply terminate the message loop
self.quit()
clikhere. www.polomar23.skyblog.com ♪ CocuUu ♫♪: Cocutsa iub.








