Beispiel #1
0
    def __init__(self):
        self.root = Tk()
        h = Hello(self)

        self.b1 = Button(self.root, text="click me", command=h.hello_basic)
        self.b1.pack()

        self.l1 = Label(self.root, text="Welcome")
        self.l1.pack()
Beispiel #2
0
    def createWidget(self):

        h = Hello(self)
        self.label = ttk.Label(self.master, text="Welcome")
        self.label.grid(row=1, column=1)

        self.b1 = ttk.Button(self.master, text="Hello", command=h.hello_basic)
        self.b1.grid(row=2, column=1)

        self.b2 = ttk.Button(self.master,
                             text="Hello Name",
                             command=h.hello_name)
        self.b2.grid(row=3, column=1)

        self.b3 = ttk.Button(self.master,
                             text="Hello in French",
                             command=h.hello_in_french)
        self.b3.grid(row=4, column=1)
Beispiel #3
0
    def __init__(self):
        self.root = Tk()

        h = Hello(self)

        self.b1 = Button(self.root,text="Press Hello Basic",command = h.hello_basic)
        self.b1.pack()

        self.b2 = Button(self.root, text="Press Hello name", command=h.hello_name)
        self.b2.pack()

        self.b3 = Button(self.root, text="Press Hello French", command=h.hello_in_french)
        self.b3.pack()

        self.l1 = Label(self.root,text="Welcome Message")
        self.l1.pack()

        self.root.mainloop()
Beispiel #4
0
    def __init__(self):
        self.root = Tk()
        h = Hello(self)

        self.b1 = Button(self.root,
                         text=" hello basic ",
                         command=h.hello_basic)
        self.b1.pack()

        self.b2 = Button(self.root, text="hello name", command=h.hello_name)
        self.b2.pack()

        self.b3 = Button(self.root,
                         text="hello in french",
                         command=h.hello_in_french)
        self.b3.pack()

        self.l1 = Label(self.root, text="Welcome")
        self.l1.pack()
Beispiel #5
0
 def execute(self):
     h = Hello()
     h.hello_in_french()
Beispiel #6
0
 def run(self):
     h = Hello()
     h.hello_basic()