self.OKPressed = 0
self.ImageCount = TotalCells
# define all the variables attached to the controls
self.GridLinesX = IntVar()
self.GridLinesX.set( NumCols )
self.GridLinesY = IntVar()
self.GridLinesY.set( NumRows )
[/s]
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 )



