Apr-11-2024, 07:28 PM
So I have the simple program
that I made in Python tkinter
It opens up a cmd window and executes sfc /scannow
What I'm trying to figure out is if I click on the X at the top right corner
I get a ^C how do I prevent this, how do I close the window the proper way
I tried to put it in a try block with a keyboard interruption and that didn't seem to work
I tried several different ways to use kill but I am unclear on how it's supposed to work
that I made in Python tkinter
It opens up a cmd window and executes sfc /scannow
What I'm trying to figure out is if I click on the X at the top right corner
I get a ^C how do I prevent this, how do I close the window the proper way
I tried to put it in a try block with a keyboard interruption and that didn't seem to work
I tried several different ways to use kill but I am unclear on how it's supposed to work
def sfc_scannow(): # sfc / scannow if not pyuac.isUserAdmin(): statusbar.set('Access is denied, you are not an admin') root.after(5000, lambda: statusbar.set('')) # print('okM') # for testing else: sfc_scannow_data() def sfc_scannow_data(): subprocess.Popen("start /wait sfc /scannow", shell=True)