mirror of
https://github.com/Melon-Bread/EagleJab
synced 2024-11-24 20:28:19 -05:00
Hides Tk Window
This commit is contained in:
parent
85551e6365
commit
2007c36ace
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user