I've just read through all the other posts on this forum about shutting the pi down through something that looks like this:
import os
os.system("shutdown now")
Unfortunately, neither this nor any other variation of this code will work for my program. I am trying to add a menu item that allows the user to turn off the pi. Here's what I have:
filemenu.add_command(label='Shutdown', command = os.system("shutdown now"))
Early attempts (which looked similar but I didn't think to save them as they didn't work either) would shut the pi down immediately after I ran the module. Now, it doesn't do anything at all. Any help is appreciated!