mirror of
https://github.com/Melon-Bread/EagleJab
synced 2024-11-24 20:28:19 -05:00
Switched out IP input dialog to use tk
This commit is contained in:
parent
c8cc5dc373
commit
d524e837c5
@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
import os, argparse, socket, sys, struct, easygui
|
import os, argparse, socket, sys, struct
|
||||||
import tkinter.messagebox, tkinter.filedialog
|
import tkinter.messagebox, tkinter.filedialog, tkinter.simpledialog
|
||||||
|
|
||||||
# New & improved args parsing
|
# New & improved args parsing
|
||||||
parser = argparse.ArgumentParser(description='Sends .CIA files to the 3DS via FBI')
|
parser = argparse.ArgumentParser(description='Sends .CIA files to the 3DS via FBI')
|
||||||
@ -23,7 +23,7 @@ fbiinfo = struct.pack('!q', statinfo.st_size)
|
|||||||
if args.ip:
|
if args.ip:
|
||||||
dsip = args.ip[0]
|
dsip = args.ip[0]
|
||||||
else:
|
else:
|
||||||
dsip = easygui.enterbox("Enter 3DS' IP:", "FalconPunch", "192.168.1.1")
|
dsip = tkinter.simpledialog.askstring("Falcon Punch", "Enter 3Ds' IP:")
|
||||||
|
|
||||||
file = open(cia, "rb")
|
file = open(cia, "rb")
|
||||||
sock = socket.socket()
|
sock = socket.socket()
|
||||||
@ -36,7 +36,7 @@ while True:
|
|||||||
chunk = file.read(16384)
|
chunk = file.read(16384)
|
||||||
if not chunk:
|
if not chunk:
|
||||||
# Prints or displays a confirmation based on how the program is given info
|
# Prints or displays a confirmation based on how the program is given info
|
||||||
confirmation = "Sent " + cia + " to the 3DS (" + dsip + ")"
|
confirmation = "Sent: \n" + cia + "\n to the 3DS (" + dsip + ")"
|
||||||
if args.cia and args.ip:
|
if args.cia and args.ip:
|
||||||
print(confirmation)
|
print(confirmation)
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user