def make_group_frame(master, name=None, label=None, fill=Y, side=None, expand=None, font=None):
 font = (font or '-*-helvetica-medium-r-normal-*-*-100-*-*-*-*-*-*')
 outer = Frame(master, borderwidth=2, relief=GROOVE)
 outer.pack(expand=expand, fill=fill, side=side)
 if label:
  Label(outer, text=label, font=font, anchor=W).pack(fill=X)
 inner = Frame(master, borderwidth='1m', name=name)
 inner.pack(expand=1, fill=BOTH, in_=outer)
 inner.forget = outer.forget
 return inner

def make_group_frame ( master , name = None , label = None , fill = Y , side = None , expand = None , font = None ) : font = ( font or '-*-helvetica-medium-r-normal-*-*-100-*-*-*-*-*-*' ) outer = Frame ( master , borderwidth = 2 , relief = GROOVE ) outer . pack ( expand = expand , fill = fill , side = side ) if label : Label ( outer , text = label , font = font , anchor = W ) . pack ( fill = X ) inner = Frame ( master , borderwidth = '1m' , name = name ) inner . pack ( expand = 1 , fill = BOTH , in_ = outer ) inner . forget = outer . forget return inner
create nested frames with a border and optional label .