diff options
| author | Andrew Lee <alee14498@protonmail.com> | 2020-08-11 23:20:22 -0400 |
|---|---|---|
| committer | Andrew Lee <alee14498@protonmail.com> | 2020-08-11 23:20:22 -0400 |
| commit | 1c62a50742a8c5bfecbd60c749514fefdb2dc723 (patch) | |
| tree | 8dedcb12fd3ec9dbb23bdde3e4f148f3914bb0b2 | |
| parent | 1a82700f2376d31366cebf16ce64bdd8e6d1d80a (diff) | |
| download | RPi-Menu-1c62a50742a8c5bfecbd60c749514fefdb2dc723.tar.gz RPi-Menu-1c62a50742a8c5bfecbd60c749514fefdb2dc723.tar.bz2 RPi-Menu-1c62a50742a8c5bfecbd60c749514fefdb2dc723.zip | |
Added messagebox
| -rwxr-xr-x | menu.py | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -20,9 +20,13 @@ import tkinter import os from tkinter import * from tkinter import font as tkFont +from tkinter import messagebox app = tkinter.Tk() # Functions +def msgbox(): + msgboxMessage = messagebox.showinfo(title="Information", message="This option is currently broken.") + Label(app, text=msgboxMessage).pack() def launchDesktop(): print("Launching Desktop") quit() @@ -33,10 +37,11 @@ def launchDashboard(): quit() def launchRetroPie(): print("Launching RetroPie") - # os.system("nohup sudo su -c \"systemctl stop lightdm ; ttyecho -n /dev/tty1 \"emulationstation ; sudo systemctl start lightdm\"\"") + #os.system("nohup sudo su -c \"systemctl stop lightdm ; ttyecho -n /dev/tty1 \"emulationstation ; sudo systemctl start lightdm\"\"") #os.system("nohup sudo pkill Xorg ; emulationstation") - os.system("bash /home/pi/menu/launchES.sh") - quit() + #os.system("nohup /home/pi/menu/launchES.sh") + msgbox() + #quit() def launchSteam(): print("Launching Steam Link") os.system("/usr/bin/steamlink &") |
