Skip to content

Commit 3466ef5

Browse files
committed
Change default DSi version
1 parent 6df97b1 commit 3466ef5

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

Diff for: main.py

+8-2
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,10 @@ def summonWindow1():
467467
selector["menu"].config(bg=buttonColour,fg=foregroundColour,font=(buttonFont))
468468
selector.grid(column=0,row=5,sticky="w")
469469

470+
if platform.system() == "Darwin":
471+
macOS_hiddentext = tkinter.Label(topFrame, text = "(Click the area above this text\n if you can't see the drop down menu) ",fg=foregroundColour,font=(bodyFont))
472+
macOS_hiddentext.grid(column=0,row=6, sticky="w")
473+
470474
backButton = Button(bottomFrame,text="Back", font=(buttonFont),fg=foregroundColour,bg=backButtonColour,command=lambda: [topFrame.destroy(),bottomFrame.destroy(),summonWindow0()], width=button_width)
471475
backButton.pack(side=tkinter.LEFT)
472476
nextButton = Button(bottomFrame, text="Next",width=button_width, fg=foregroundColour,bg=nextButtonColour, font=(buttonFont),command=lambda:[topFrame.destroy(),bottomFrame.destroy(),summonWindow2()])
@@ -593,6 +597,8 @@ def summonWindow5():
593597
print("This program will ONLY work on Python 3 and above")
594598
sys.exit()
595599

600+
os.chdir(os.path.dirname(os.path.abspath(sys.argv[0])))
601+
596602
root = tkinter.Tk()
597603
window = tkinter.Toplevel(root)
598604
root.withdraw()
@@ -607,7 +613,7 @@ def summonWindow5():
607613
#TKinter Vars
608614
downloadmemorypit = tkinter.IntVar(value=1)
609615
firmwareVersion = tkinter.StringVar()
610-
firmwareVersion.set(dsiVersions[0])
616+
firmwareVersion.set(dsiVersions[1])
611617
downloadtwlmenu = tkinter.IntVar(value=1)
612618
downloaddumptool = tkinter.IntVar(value=1)
613619
unlaunch = tkinter.IntVar(value=0)
@@ -661,7 +667,7 @@ def summonWindow5():
661667

662668

663669
else: #Non Jeve Stobs worshippers
664-
from tkinter import Button
670+
from tkmacosx import Button
665671
backgroundColour = "#252a34"
666672
foregroundColour = "white"
667673
buttonColour = "#7289DA"

0 commit comments

Comments
 (0)