Skip to content

Commit

Permalink
2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
RainbowTabitha committed Jan 23, 2024
1 parent 5bd57cb commit faceabc
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 31 deletions.
11 changes: 7 additions & 4 deletions functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,14 @@ def createDialog(windowTitle, warn, info, buttonTxt=None):
imgLabel.grid(row=0, column=0, padx=10, pady=10)
imgLabel.image = img # Keep a reference to the image

try:
button = ctk.CTkButton(completeWindow, command=run_update, text=buttonTxt)
button.grid(row=1, column=0, padx=50, pady=10)
except:
if buttonTxt == None:
pass
else:
try:
button = ctk.CTkButton(completeWindow, command=run_update, text=buttonTxt)
button.grid(row=1, column=0, padx=50, pady=10)
except:
pass

# Configure row and column weights
completeWindow.columnconfigure(0, weight=1)
Expand Down
45 changes: 18 additions & 27 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ def create_mp8_frame(self):

def actionSpaceButtonOne(self):
if not self.blueSpaceAmountOne.get() and not self.redSpaceAmountOne.get():
createDialog("Error", "error", "No information provided.")
createDialog("Error", "error", "No information provided.", None)
return

blueSpaceAmountBaseOne = self.blueSpaceAmountOne.get()
Expand Down Expand Up @@ -548,11 +548,10 @@ def actionSpaceButtonOne(self):
generatedCode = generatedCode.strip()
pyperclip.copy(generatedCode)
print("Generated codes copied to the clipboard.")
createDialog("Operation Sucesssful", "success", "Generated codes copied to clipboard!")

createDialog("Operation Sucesssful", "success", "Generated codes copied to clipboard!", None)
def actionSpaceButtonTwo(self):
if not self.blueSpaceAmountTwo.get() and not self.redSpaceAmountTwo.get():
createDialog("Error", "error", "No information provided.")
createDialog("Error", "error", "No information provided.", None)
return

blueSpaceAmountBaseTwo = self.blueSpaceAmountTwo.get()
Expand Down Expand Up @@ -610,11 +609,10 @@ def actionSpaceButtonTwo(self):
generatedCode = generatedCode.strip()
pyperclip.copy(generatedCode)
print("Generated codes copied to the clipboard.")
createDialog("Operation Sucesssful", "success", "Generated codes copied to clipboard!")

createDialog("Operation Sucesssful", "success", "Generated codes copied to clipboard!", None)
def actionSpaceButtonThree(self):
if not self.blueSpaceAmountThree.get() and not self.redSpaceAmountThree.get():
createDialog("Error", "error", "No information provided.")
createDialog("Error", "error", "No information provided.", None)
return

blueSpaceAmountBaseThree = self.blueSpaceAmountThree.get()
Expand Down Expand Up @@ -672,11 +670,10 @@ def actionSpaceButtonThree(self):
generatedCode = generatedCode.strip()
pyperclip.copy(generatedCode)
print("Generated codes copied to the clipboard.")
createDialog("Operation Sucesssful", "success", "Generated codes copied to clipboard!")

createDialog("Operation Sucesssful", "success", "Generated codes copied to clipboard!", None)
def actionSpaceButtonFour(self):
if not self.blueSpaceAmountFour.get() and not self.redSpaceAmountFour.get() and not self.starSpaceAmountFour.get():
createDialog("Error", "error", "No information provided.")
createDialog("Error", "error", "No information provided.", None)
return

blueSpaceAmountBaseFour = self.blueSpaceAmountFour.get()
Expand Down Expand Up @@ -733,11 +730,10 @@ def actionSpaceButtonFour(self):
generatedCode = generatedCode.strip()
pyperclip.copy(generatedCode)
print("Generated codes copied to the clipboard.")
createDialog("Operation Sucesssful", "success", "Generated codes copied to clipboard!")

createDialog("Operation Sucesssful", "success", "Generated codes copied to clipboard!", None)
def actionSpaceButtonFive(self):
if not self.blueSpaceAmountFive.get() and not self.redSpaceAmountFive.get() and not self.starSpaceAmountFive.get() and not self.wigglerSpaceAmountFive.get():
createDialog("Error", "error", "No information provided.")
createDialog("Error", "error", "No information provided.", None)
return

blueSpaceAmountBaseFive = self.blueSpaceAmountFive.get()
Expand Down Expand Up @@ -818,11 +814,10 @@ def actionSpaceButtonFive(self):
generatedCode = generatedCode.strip()
pyperclip.copy(generatedCode)
print("Generated codes copied to the clipboard.")
createDialog("Operation Sucesssful", "success", "Generated codes copied to clipboard!")

createDialog("Operation Sucesssful", "success", "Generated codes copied to clipboard!", None)
def actionSpaceButtonSix(self):
if not self.blueSpaceAmountSix.get() and not self.redSpaceAmountSix.get() and not self.starSpaceAmountSix.get():
createDialog("Error", "error", "No information provided.")
createDialog("Error", "error", "No information provided.", None)
return

blueSpaceAmountBaseSix = self.blueSpaceAmountSix.get()
Expand Down Expand Up @@ -873,12 +868,11 @@ def actionSpaceButtonSix(self):
generatedCode = generatedCode.strip()
pyperclip.copy(generatedCode)
print("Generated codes copied to the clipboard.")
createDialog("Operation Sucesssful", "success", "Generated codes copied to clipboard!")

createDialog("Operation Sucesssful", "success", "Generated codes copied to clipboard!", None)

def actionSpaceButtonSeven(self):
if not self.blueSpaceAmountSeven.get() and not self.redSpaceAmountSeven.get() and not self.starSpaceAmountSeven.get() and not self.starSpaceAmountSevenLastFive.get():
createDialog("Error", "error", "No information provided.")
createDialog("Error", "error", "No information provided.", None)
return

blueSpaceAmountBaseSeven = self.blueSpaceAmountSeven.get()
Expand Down Expand Up @@ -944,11 +938,10 @@ def actionSpaceButtonSeven(self):
generatedCode = generatedCode.strip()
pyperclip.copy(generatedCode)
print("Generated codes copied to the clipboard.")
createDialog("Operation Sucesssful", "success", "Generated codes copied to clipboard!")

createDialog("Operation Sucesssful", "success", "Generated codes copied to clipboard!", None)
def actionSpaceButtonEight(self):
if not self.blueSpaceAmountEight.get() and not self.redSpaceAmountEight.get() and not self.starSpaceAmountEight.get():
createDialog("Error", "error", "No information provided.")
createDialog("Error", "error", "No information provided.", None)
return

blueSpaceAmountBaseEight = self.blueSpaceAmountEight.get()
Expand Down Expand Up @@ -1008,11 +1001,10 @@ def actionSpaceButtonEight(self):
generatedCode = generatedCode.strip()
pyperclip.copy(generatedCode)
print("Generated codes copied to the clipboard.")
createDialog("Operation Sucesssful", "success", "Generated codes copied to clipboard!")

createDialog("Operation Sucesssful", "success", "Generated codes copied to clipboard!", None)
def actionSpaceButtonEight2(self):
if not self.blueSpaceAmountEight2.get() and not self.redSpaceAmountEight2.get() and not self.starSpaceAmountEight2.get():
createDialog("Error", "error", "No information provided.")
createDialog("Error", "error", "No information provided.", None)
return
blueSpaceAmountBaseEight2 = self.blueSpaceAmountEight2.get()

Expand Down Expand Up @@ -1069,8 +1061,7 @@ def actionSpaceButtonEight2(self):
pyperclip.copy(generatedCode)

print("Generated codes copied to the clipboard.")
createDialog("Operation Sucesssful", "success", "Generated codes copied to clipboard!")

createDialog("Operation Sucesssful", "success", "Generated codes copied to clipboard!", None)
def mp1ButtonEvent(self):
self.mario_party_1_button.configure(state="disabled")
self.mario_party_2_button.configure(state="enabled")
Expand Down

0 comments on commit faceabc

Please sign in to comment.