Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import sys
- from Tkinter import *
- from os import system as run
- from time import sleep
- import thread
- r = Tk()
- r.title('Remote Support')
- t = StringVar()
- t.set('Completing Remote Support Initalisation ')
- l = Label(r, textvariable=t).pack()
- def quit():
- #do cleanup if any
- r.destroy()
- but = Button(r, text='Stop Remote Support', command=quit)
- but.pack(side=LEFT)
- def d():
- sleep(2)
- t.set('Completing Remote Support Initalisation, downloading, please wait ')
- run('sleep 5') #test shell command
- t.set('Preparing to run download, please wait ')
- run('sleep 5')
- t.set("OK thanks! Remote Support will now close ")
- sleep(2)
- quit()
- sleep(2)
- thread.start_new_thread(d,())
- r.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement