legusor

Emustarter Python

Apr 13th, 2025
21
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.41 KB | Gaming | 0 0
  1. # Import Library
  2. from tkinter import *
  3. import os
  4. from tkinter.filedialog import askopenfilename
  5.  
  6. # Create Object
  7. root = Tk()
  8. root.title("EmuStarter")
  9.  
  10. # Set geometry
  11. root.geometry('250x350')
  12.  
  13. def ps1():
  14.     os.system('"%s"' % "C:\\EMULS\\duckstation-windows-x64-release\\start.bat")
  15. Button(root, text ='PS1 - Duckstation', command = ps1).pack(side = TOP, pady = 10)
  16.  
  17. def ps2():
  18.     os.system('"%s"' % "C:\\EMULS\\pcsx2-windows-x64\\start.bat")
  19. Button(root, text ='PS2 - PCSX2', command = ps2).pack(side = TOP, pady = 10)
  20.  
  21. def ps3():
  22.     os.system('"%s"' % "C:\\EMULS\\rpcs3-v0.0.35-17665-1a51ce1e_win64\\start.bat")
  23. Button(root, text ='PS3 - RPCS3', command = ps3).pack(side = TOP, pady = 10)
  24.  
  25. def ps4():
  26.     os.system('"%s"' % "C:\\EMULS\\shadps4-win64-qt-0.6.0\\start.bat")
  27. Button(root, text ='PS4 - ShadPS4', command = ps4).pack(side = TOP, pady = 10)
  28.  
  29. def dream():
  30.     os.system('"%s"' % "C:\\EMULS\\flycast\\start.bat")
  31. Button(root, text ='Dreamcast - FlyCast', command = dream).pack(side = TOP, pady = 10)
  32.  
  33. def ngc():
  34.     os.system('"%s"' % "C:\\EMULS\\Dolphin-x64\\start.bat")
  35. Button(root, text ='Gamecube and Wii - Dolphin', command = ngc).pack(side = TOP, pady = 10)
  36.  
  37. def switch():
  38.     os.system('"%s"' % "C:\\EMULS\\ryujinx-1.1.1339-win_x64\\publish\\start.bat")
  39. Button(root, text ='Switch - Ryujinx', command = switch).pack(side = TOP, pady = 10)
  40.  
  41. # Execute Tkinter
  42. root.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment