From c8cc5dc37365893622371202d1a5a875f2b5a2cc Mon Sep 17 00:00:00 2001 From: Rain Clark Date: Fri, 1 May 2015 17:05:22 -0400 Subject: [PATCH] Switched out confirmation file dialog to use tk --- FalconPunch.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/FalconPunch.py b/FalconPunch.py index 42275f8..2d523b6 100755 --- a/FalconPunch.py +++ b/FalconPunch.py @@ -1,6 +1,6 @@ #!/usr/bin/env python import os, argparse, socket, sys, struct, easygui -import tkinter.messagebox +import tkinter.messagebox, tkinter.filedialog # New & improved args parsing parser = argparse.ArgumentParser(description='Sends .CIA files to the 3DS via FBI') @@ -13,8 +13,8 @@ args = parser.parse_args() if args.cia: cia = args.cia[0] else: - cia = easygui.fileopenbox("Choose CIA to Send", "Falcon Punch", default="/", filetypes=["*.cia", "*.*"], - multiple=False) + cia = tkinter.filedialog.askopenfilename(title="Falcon Punch - Choose CIA to Send", initialdir="/", + defaultextension=".cia", filetypes=[("CIA File", "*.cia")], multiple=False) statinfo = os.stat(cia) fbiinfo = struct.pack('!q', statinfo.st_size)