1 #!/usr/bin/env python2.7
4 ===============================================================================
7 Website : http://hassan3afify.com
9 Copyright : Your copyright notice
11 ===============================================================================
18 class SimpleApp(object):
19 """This class create a gui."""
24 self
.root_background
= "grey"
25 self
.title
= "Cartoon Downloder"
27 self
.root
= Tkinter
.Tk()
28 self
.root
.resizable(width
=True, height
=True)
29 self
.root
.wm_title(self
.title
)
30 self
.root
.configure(background
=self
.root_background
)
32 # self.root.attributes('-fullscreen', True)
34 # self.root.geometry(str(self.max_width)+"x"+str(self.max_height))
36 self
.create_lable(text
="This is the welcome message",
43 # entry_name = ttk.Entry(root, width=28, font =('Arial', 25))
44 # entry_name.grid(row=0, column=1, sticky='w')
45 # entry_name.bind("<Return>")
49 def create_lable(self
, text
, color
, background
, font
, label_bg
,
51 """This method create a lable"""
53 label_frame
= Tkinter
.Frame(self
.root
,
57 label_frame
.pack_propagate(0)
58 Tkinter
.Label(label_frame
,
62 font
=("Calibri", font
)).pack(fill
=Tkinter
.BOTH
, expand
=1)
63 label_frame
.place(x
=x
, y
=y
)
65 # text = Tkinter.Label(master=self.root, text=text, bg=bg, fg=color)
66 # myFont = tkFont.Font(family="Times New Roman", size=20)
67 # text.configure(font=myFont)
68 # text.pack(fill=Tkinter.BOTH, expand=1)
71 # go = Tkinter.Button(master=self.root , text='Start Game')
73 # close = Tkinter.Button(master=self.root , text='Quit')