Python - Tkinter GUI
I am having issues with Tkinter. This is my first time using it and i'm wondering if you could help me. I have written the GUI of what i want but i can't make it into a class, could someone help me? 

import datetime

from Tkinter import *

import tkMessageBox

import tkFileDialog



    root = Tk()
    menubar = Menu(root)
    filemenu = Menu(menubar, tearoff=0)
    filemenu.add_command(label="Open rooms file")
    filemenu.add_command(label="Save rooms file")
    filemenu.add_command(label="Exit")
    menubar.add_cascade(label="File",menu = filemenu )
    editmenu = Menu(menubar)
    editmenu.add_command(label="Undo")

    frame1 = Frame(root, bg="white", height=365)
    frame1.pack(side=TOP, fill=BOTH, padx=2)

    frame2 = Frame(root)
    frame2.pack()

    addguest = Button(frame2, text="Add Guest",)
    addguest.pack(side=LEFT, padx=10, pady=10)

    update = Button(frame2, text="Update Guest")
    update.pack(side=LEFT, padx=10,pady=10)

    remove = Button(frame2, text="Remove Guest")
    remove.pack(side=LEFT, padx=10,pady=10)

    root.title("Rooms manager")
    root.geometry("800x410+75+75")
    root.config(menu=menubar)
    root.mainloop()
I want to make this into class Controller. Is this possible?
Python - Tkinter GUI
===

I am having issues with Tkinter. This is my first time using it and i'm wondering if you could help me. I have written the GUI of what i want but i can't make it into a class, could someone help me? 

import datetime

from Tkinter import *

import tkMessageBox

import tkFileDialog



    root = Tk()
    menubar = Menu(root)
    filemenu = Menu(menubar, tearoff=0)
    filemenu.add_command(label="Open rooms file")
    filemenu.add_command(label="Save rooms file")
    filemenu.add_command(label="Exit")
    menubar.add_cascade(label="File",menu = filemenu )
    editmenu = Menu(menubar)
    editmenu.add_command(label="Undo")

    frame1 = Frame(root, bg="white", height=365)
    frame1.pack(side=TOP, fill=BOTH, padx=2)

    frame2 = Frame(root)
    frame2.pack()

    addguest = Button(frame2, text="Add Guest",)
    addguest.pack(side=LEFT, padx=10, pady=10)

    update = Button(frame2, text="Update Guest")
    update.pack(side=LEFT, padx=10,pady=10)

    remove = Button(frame2, text="Remove Guest")
    remove.pack(side=LEFT, padx=10,pady=10)

    root.title("Rooms manager")
    root.geometry("800x410+75+75")
    root.config(menu=menubar)
    root.mainloop()
I want to make this into class Controller. Is this possible?