Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def runtest(testname):
- usrdef_sship = sship_e.get()
- usrdef_username = username_e.get()
- usrdef_pass = pass_e.get()
- testresult = cpdiag.testname(cpdiag.ssh(usrdef_sship, usrdef_username, usrdef_pass))
- messagebox.showinfo( "Results", testresult)
- #Button for disk Test
- disktest = Button(top, text="Disk Test", command = lambda: runtest("diskTest")
- disktest.grid(row=3,column=0, sticky=W)
- #Button for cpwd Test
- cpwdtest = Button(top, text="CPWD Test", command = lambda: runtest("cpwdTest")
- cpwdtest.grid(row=4,column=0, sticky=W)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement