def edit_recarray(r, formatd=None, stringd=None, constant=None, autowin=True):
 liststore = RecListStore(r, formatd=formatd, stringd=stringd)
 treeview = RecTreeView(liststore, constant=constant)
 if autowin:
  win = gtk.Window()
  win.add(treeview)
  win.show_all()
  return (liststore, treeview, win)
 else:
  return (liststore, treeview)

def edit_recarray ( r , formatd = None , stringd = None , constant = None , autowin = True ) : liststore = RecListStore ( r , formatd = formatd , stringd = stringd ) treeview = RecTreeView ( liststore , constant = constant ) if autowin : win = gtk . Window ( ) win . add ( treeview ) win . show_all ( ) return ( liststore , treeview , win ) else : return ( liststore , treeview )
create a recliststore and rectreeview and return them .