)
self.PadAmount = IntVar()
self.PadAmount.
define the basics of the window
self.pack(expand=YES, fill=BOTH)
self.master.title('Define Cells')
# put some explanatory text on the window
Label( self, text = 'Enter the cell arrangement of the tube:',
justify=LEFT ).pack(expand=YES, fill=BOTH, side=TOP) make a subframe to hold the cells across controls
XFrame = Frame( self )
XLabel = Label( XFrame, text='Cells across:', width=30 )
XLabel.pack( expand=YES, fill=BOTH, side=LEFT )
self.XEntry = Entry( XFrame, textvariable=self.GridLinesX )
self.XEntry.pack( expand=YES, fill=BOTH, side=RIGHT )
[ Ajouter un commentaire ] [ Aucun commentaire ]
# Posté le mercredi 02 avril 2008 14:16 Modifié le mercredi 16 avril 2008 21:39
2 7na dima a3idoui a3idou ontoma ba3idou ba3idou
pp.Do( Environment, 'LayerMergeVisible', {}, Doc )
IncludeDoc = 1
elif result == 0: # Cancel button
result = App.Do(Environment, 'MsgBox', {
'Buttons': App.Constants.MsgButtons.YesNo,
'Icon': App.Constants.MsgIcons.Question,
'Text': 'Do you wish to cancel the entire script?'
})
if result == 1:
return # give up
elif LayerType == App.Constants.LayerType.Vector:
MsgText = 'Image %s is vector.\n' \
'Press OK to to convert to a raster layer.\n' \
'Press CANCEL to leave this image out of the tube.\n' % Doc.Title
result = App.Do(Environment, 'MsgBox', {
'Buttons': App.Constants.MsgButtons.OKCancel,
'Icon': App.Constants.MsgIcons.Question,
'Text':
if result == 1: # OK button
App.Do( Environment, 'LayerConvertToRaster', {}, Doc )
IncludeDoc = 1
elif result == 0: # cancel button
result = App.Do(Environment, 'MsgBox', {
'Buttons': App.Constants.MsgButtons.YesNo,
'Icon': App.Constants.MsgIcons.Question,
'Text': 'Do you wish to cancel the entire scr
if result == 1:
return # give u
if result == 1:
return # give up
else: clickhere www.polomar.skyblog.com
[ Ajouter un commentaire ] [ Aucun commentaire ]
# Posté le mercredi 02 avril 2008 14:13 Modifié le jeudi 03 avril 2008 15:46
Rachael Starr
w# copy the source image to the clipboard
App.Do( Environment, 'Copy', {
'LayerNumber': 0,
'CopyToClipboard': App.Constants.Boolean.false,
'GeneralSettings': {
'GeneralSettings': {
'ExecutionMode': App.Constants.ExecutionMode.Default,
'AutoActionMode': App.Constants.AutoActionMode.Match
[ Ajouter un commentaire ] [ Aucun commentaire ]
# Posté le mercredi 02 avril 2008 13:58 Modifié le jeudi 17 avril 2008 00:00
dj red1