Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from Tkinter import *
- class tk_hello(object):
- def __init__(self, question):
- self.question = question
- self.master = Tk()
- self.lbl = Label(self.master, text="Did it work?")
- self.lbl.pack()
- self.btn = Button(self.master, text="Yes", command=self.yes_command)
- self.btn.pack()
- self.master.mainloop()
- def yes_command(self):
- print("User pressed Yes")
- self.master.quit()
- self.master.destroy()
- *** Settings ***
- *** Variables ***
- *** Test Cases ***
- Example_1
- Import Library ${CURDIR}\..\work_project\tk_hello.py "Worked" WITH NAME Try_This
- Log To Console r ${CURDIR}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement