Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Import Library
- from tkinter import *
- import os
- from tkinter.filedialog import askopenfilename
- # Create Object
- root = Tk()
- root.title("EmuStarter")
- # Set geometry
- root.geometry('250x350')
- def ps1():
- os.system('"%s"' % "C:\\EMULS\\duckstation-windows-x64-release\\start.bat")
- Button(root, text ='PS1 - Duckstation', command = ps1).pack(side = TOP, pady = 10)
- def ps2():
- os.system('"%s"' % "C:\\EMULS\\pcsx2-windows-x64\\start.bat")
- Button(root, text ='PS2 - PCSX2', command = ps2).pack(side = TOP, pady = 10)
- def ps3():
- os.system('"%s"' % "C:\\EMULS\\rpcs3-v0.0.35-17665-1a51ce1e_win64\\start.bat")
- Button(root, text ='PS3 - RPCS3', command = ps3).pack(side = TOP, pady = 10)
- def ps4():
- os.system('"%s"' % "C:\\EMULS\\shadps4-win64-qt-0.6.0\\start.bat")
- Button(root, text ='PS4 - ShadPS4', command = ps4).pack(side = TOP, pady = 10)
- def dream():
- os.system('"%s"' % "C:\\EMULS\\flycast\\start.bat")
- Button(root, text ='Dreamcast - FlyCast', command = dream).pack(side = TOP, pady = 10)
- def ngc():
- os.system('"%s"' % "C:\\EMULS\\Dolphin-x64\\start.bat")
- Button(root, text ='Gamecube and Wii - Dolphin', command = ngc).pack(side = TOP, pady = 10)
- def switch():
- os.system('"%s"' % "C:\\EMULS\\ryujinx-1.1.1339-win_x64\\publish\\start.bat")
- Button(root, text ='Switch - Ryujinx', command = switch).pack(side = TOP, pady = 10)
- # Execute Tkinter
- root.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment