new_contents: from Tkinter import *
  import ttk
  import tkFileDialog as FileDialog
  #from Tkinter import FileDialog
  
  root = Tk()
  root.wm_iconbitmap("favicon.ico")
  root.title("PyMoss")
  root.geometry("800x600+10+10")
  
  content = ttk.Frame(root, padding=(3,3,12,12))
  frame = ttk.Frame(content, borderwidth=5, relief="sunken", width=200, height=100)
  namelbl = ttk.Label(content, text="Name")
  menubar = Menu(root)
  name = ttk.Entry(content)
  
  def openfilename():
      filename = FileDialog.askopenfilename()
      f = open(filename)
      print f.read()
  
  def saveasfilename():
      FileDialog.asksaveasfilename()
      
  def donothing():
     filewin = Toplevel(root)
     button = Button(filewin, text="Do nothing button")
     button.pack()
  
  filemenu = Menu(menubar, tearoff=0)
  filemenu.add_command(label="New", command=donothing)
  filemenu.add_command(label="Open", command=openfilename)
  filemenu.add_command(label="Save", command=saveasfilename)
  filemenu.add_command(label="Save as...", command=saveasfilename)
  filemenu.add_command(label="Close", command=donothing)
  filemenu.add_separator()
  filemenu.add_command(label="Exit", command=root.quit)
  
  menubar.add_cascade(label="File", menu=filemenu)
  editmenu = Menu(menubar, tearoff=0)
  editmenu.add_command(label="Undo", command=donothing)
  
  editmenu.add_separator()
  
  editmenu.add_command(label="Cut", command=donothing)
  editmenu.add_command(label="Copy", command=donothing)
  editmenu.add_command(label="Paste", command=donothing)
  editmenu.add_command(label="Delete", command=donothing)
  editmenu.add_command(label="Select All", command=donothing)
  
  menubar.add_cascade(label="Edit", menu=editmenu)
  helpmenu = Menu(menubar, tearoff=0)
  helpmenu.add_command(label="Help Index", command=donothing)
  helpmenu.add_command(label="About...", command=donothing)
  menubar.add_cascade(label="Help", menu=helpmenu)
  root.config(menu=menubar)
  
  onevar = BooleanVar()
  twovar = BooleanVar()
  threevar = BooleanVar()
  
  onevar.set(True)
  twovar.set(False)
  threevar.set(True)
  
  one = ttk.Checkbutton(content, text="One", variable=onevar, onvalue=True)
  two = ttk.Checkbutton(content, text="Two", variable=twovar, onvalue=True)
  three = ttk.Checkbutton(content, text="Three", variable=threevar, onvalue=True)
  ok = ttk.Button(content, text="Okay")
  cancel = ttk.Button(content, text="Cancel")
  
  content.grid(column=0, row=0, sticky=(N, S, E, W))
  frame.grid(column=0, row=0, columnspan=3, rowspan=2, sticky=(N, S, E, W))
  namelbl.grid(column=3, row=0, columnspan=2, sticky=(N, W), padx=5)
  name.grid(column=3, row=1, columnspan=2, sticky=(N, E, W), pady=5, padx=5)
  one.grid(column=0, row=3)
  two.grid(column=1, row=3)
  three.grid(column=2, row=3)
  ok.grid(column=3, row=3)
  cancel.grid(column=4, row=3)
  
  root.columnconfigure(0, weight=1)
  root.rowconfigure(0, weight=1)
  content.columnconfigure(0, weight=3)
  content.columnconfigure(1, weight=3)
  content.columnconfigure(2, weight=3)
  content.columnconfigure(3, weight=1)
  content.columnconfigure(4, weight=1)
  content.rowconfigure(1, weight=1)
  
  root.mainloop()
  
subject: Create index.py