From aed873bbc6d648721d2c205896e850344290eb08 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Tue, 21 Apr 2015 11:00:31 +0100 Subject: [PATCH] Added file for main menu GUI --- GUI.py | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 GUI.py diff --git a/GUI.py b/GUI.py new file mode 100644 index 0000000..764e91a --- /dev/null +++ b/GUI.py @@ -0,0 +1,42 @@ +from tkinter import * +from tkinter.ttk import * +import logging + +class Gui: + def __init__(self, master): + self.master = master + + self.master.title("SPACE INVADERS") + self.title = Label(master) + self.title.config(text="SPACE INVADERS!", font=("Lucida", 30)) + self.title.pack(side="top") + + self.title2 = Button(master) + self.title2.config(text="SPACE INVADERS!") + self.title2.pack(side="bottom") + + # lbl_fname=Label(master) + # lbl_fname.config(text="File Name:") + # lbl_fname.grid(row=0, column = 0, padx=10, pady=20) + + # self.txt_fname=Entry(master) + # self.txt_fname.grid(row=0, column=1) + + # random_button = Button(master) + # random_button.config(text="Play File") + # random_button.grid(row=3, column=3) + + # random_button1 = Button(master) + # random_button1.config(text="Stop File") + # random_button1.grid(row=3, column=2) + logging.info("GUI Generated.") + +def main(): + root=Tk() + root.resizable(width=False, height=False) + #root.geometry("640x480") + front_end=Gui(root) + root.mainloop() + +if __name__ == "__main__": + main() \ No newline at end of file