def make_double_frame(master=None, class_=None, name=None, relief=RAISED, borderwidth=1):
 if name:
  if class_:
   frame = Frame(master, class_=class_, name=name)
  else:
   frame = Frame(master, name=name)
 elif class_:
  frame = Frame(master, class_=class_)
 else:
  frame = Frame(master)
 top = Frame(frame, name='topframe', relief=relief, borderwidth=borderwidth)
 bottom = Frame(frame, name='bottomframe')
 bottom.pack(fill=X, padx='1m', pady='1m', side=BOTTOM)
 top.pack(expand=1, fill=BOTH, padx='1m', pady='1m')
 frame.pack(expand=1, fill=BOTH)
 top = Frame(top)
 top.pack(expand=1, fill=BOTH, padx='2m', pady='2m')
 return (frame, top, bottom)

def make_double_frame ( master = None , class_ = None , name = None , relief = RAISED , borderwidth = 1 ) : if name : if class_ : frame = Frame ( master , class_ = class_ , name = name ) else : frame = Frame ( master , name = name ) elif class_ : frame = Frame ( master , class_ = class_ ) else : frame = Frame ( master ) top = Frame ( frame , name = 'topframe' , relief = relief , borderwidth = borderwidth ) bottom = Frame ( frame , name = 'bottomframe' ) bottom . pack ( fill = X , padx = '1m' , pady = '1m' , side = BOTTOM ) top . pack ( expand = 1 , fill = BOTH , padx = '1m' , pady = '1m' ) frame . pack ( expand = 1 , fill = BOTH ) top = Frame ( top ) top . pack ( expand = 1 , fill = BOTH , padx = '2m' , pady = '2m' ) return ( frame , top , bottom )
create a pair of frames suitable for hosting a dialog .