diff --git a/EagleJab.py b/EagleJab.py index 7495f5c..713354c 100644 --- a/EagleJab.py +++ b/EagleJab.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os, argparse, socket, sys, struct import tkinter.messagebox, tkinter.filedialog, tkinter.simpledialog +import tkinter as tk # New & improved args parsing parser = argparse.ArgumentParser(description='Sends .CIA files to the 3DS via FBI') @@ -9,6 +10,10 @@ parser.add_argument('-i', '--ip', help='The IP address of the target 3DS (e.g. 1 required=False, nargs=1) args = parser.parse_args() +# Hides the root tk window +root = tk.Tk() +root.withdraw() + # Ask for the desired .CIA file if none is given if args.cia: cia = args.cia[0] @@ -45,4 +50,5 @@ while True: sock.sendall(chunk) sock.close() +root.destroy() sys.exit()