1
Fork 0
This repository has been archived on 2023-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
attack-on-blocks/GUI.py

42 lines
1.2 KiB
Python
Raw Normal View History

2015-04-21 11:00:31 +01:00
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()