fixed some stuff and translated somethings
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 22 KiB |
@@ -540,6 +540,12 @@ class PfandCalculator:
|
|||||||
|
|
||||||
# ref@todo/main.py
|
# ref@todo/main.py
|
||||||
def create_todo_list(self):
|
def create_todo_list(self):
|
||||||
|
#try:
|
||||||
|
# import tkFont
|
||||||
|
#except ImportError as e:
|
||||||
|
# print(f"error as -> {e}")
|
||||||
|
|
||||||
|
|
||||||
todo = tk.Toplevel(self.root)
|
todo = tk.Toplevel(self.root)
|
||||||
todo.title("Todo Liste")
|
todo.title("Todo Liste")
|
||||||
todo.resizable(True, True)
|
todo.resizable(True, True)
|
||||||
@@ -552,6 +558,7 @@ class PfandCalculator:
|
|||||||
label_todo = tk.Label(
|
label_todo = tk.Label(
|
||||||
todo,
|
todo,
|
||||||
text=todo_instance.load_todo(),
|
text=todo_instance.load_todo(),
|
||||||
|
#font="Segoe UI",
|
||||||
padx=10,
|
padx=10,
|
||||||
pady=10,
|
pady=10,
|
||||||
justify="left",
|
justify="left",
|
||||||
@@ -1749,7 +1756,6 @@ class PfandCalculator:
|
|||||||
"Kasten",
|
"Kasten",
|
||||||
"Dose",
|
"Dose",
|
||||||
"Plastikflasche",
|
"Plastikflasche",
|
||||||
"Monster",
|
|
||||||
"Joghurt Glas",
|
"Joghurt Glas",
|
||||||
]
|
]
|
||||||
self.PRICES = {
|
self.PRICES = {
|
||||||
@@ -1758,7 +1764,6 @@ class PfandCalculator:
|
|||||||
"Kasten": 3.00,
|
"Kasten": 3.00,
|
||||||
"Dose": 0.25,
|
"Dose": 0.25,
|
||||||
"Plastikflasche": 0.25,
|
"Plastikflasche": 0.25,
|
||||||
"Monster": 0.25,
|
|
||||||
"Joghurt Glas": 0.17,
|
"Joghurt Glas": 0.17,
|
||||||
}
|
}
|
||||||
self.save_products()
|
self.save_products()
|
||||||
|
|||||||
@@ -2,6 +2,10 @@
|
|||||||
# #
|
# #
|
||||||
# AUTOGENERATED BY SETUPKEYTOOL V1.0.03 #
|
# AUTOGENERATED BY SETUPKEYTOOL V1.0.03 #
|
||||||
# THIS IS SENSITIVE INFORMATION #
|
# THIS IS SENSITIVE INFORMATION #
|
||||||
|
# #
|
||||||
|
# THIS IS FILLED IN BY THE #
|
||||||
|
# GUI ASSISTANT #
|
||||||
|
# #
|
||||||
# @ZockerKatze/@rattatwinko #
|
# @ZockerKatze/@rattatwinko #
|
||||||
# #
|
# #
|
||||||
#########################################
|
#########################################
|
||||||
@@ -11,4 +15,4 @@ from tgtg import TgtgClient
|
|||||||
# Don't ever give this Info to someone you dont trust!
|
# Don't ever give this Info to someone you dont trust!
|
||||||
# This is the Private Key to your TGTG Account
|
# This is the Private Key to your TGTG Account
|
||||||
|
|
||||||
client = TgtgClient(access_token="asdf", refresh_token="asdf", cookie="asdf")
|
client = TgtgClient(access_token="", refresh_token="", cookie="")
|
||||||
|
|||||||
@@ -61,10 +61,10 @@ def ask_for_tokens():
|
|||||||
|
|
||||||
# Create Tkinter window
|
# Create Tkinter window
|
||||||
root = tk.Tk()
|
root = tk.Tk()
|
||||||
root.title("Enter API Credentials")
|
root.title("API Kredenzen")
|
||||||
|
|
||||||
|
|
||||||
title_label = tk.Label(root, text="Enter your API Credentials", font=("Arial", 14, "bold"))
|
title_label = tk.Label(root, text="Gebe deine API Kredenzen ein!", font=("Arial", 14, "bold"))
|
||||||
title_label.grid(row=0, columnspan=2, pady=10)
|
title_label.grid(row=0, columnspan=2, pady=10)
|
||||||
|
|
||||||
# Add labels and entry fields for the tokens and cookie
|
# Add labels and entry fields for the tokens and cookie
|
||||||
@@ -81,7 +81,7 @@ def ask_for_tokens():
|
|||||||
cookie_entry.grid(row=3, column=1)
|
cookie_entry.grid(row=3, column=1)
|
||||||
|
|
||||||
# Submit button to process the tokens
|
# Submit button to process the tokens
|
||||||
submit_button = tk.Button(root, text="Submit", command=submit_tokens)
|
submit_button = tk.Button(root, text="Speichern", command=submit_tokens)
|
||||||
submit_button.grid(row=4, columnspan=2)
|
submit_button.grid(row=4, columnspan=2)
|
||||||
|
|
||||||
# Keep the window on top
|
# Keep the window on top
|
||||||
|
|||||||
@@ -1,16 +1,4 @@
|
|||||||
"""
|
|
||||||
Quick TLDR:
|
|
||||||
If you see any "ref" in the main.py file you are probably looking at a reference to a certain file.
|
|
||||||
example: ref@todo/main.py , element int(x)
|
|
||||||
This is refering to the todo list with element of X
|
|
||||||
|
|
||||||
This can be for other things too, such as other Methods in Classes.
|
|
||||||
example: ref@tgtg_orderchecker/main.py@12:32
|
|
||||||
This is refering to the tgtg oc at main 12:32.
|
|
||||||
|
|
||||||
if you see any "@" , you are probably seeing a reference to the todo list.
|
|
||||||
for example element 3 in todo (@LocalImportStructure)
|
|
||||||
"""
|
|
||||||
|
|
||||||
|
|
||||||
class todo:
|
class todo:
|
||||||
@@ -19,9 +7,10 @@ class todo:
|
|||||||
self.todo: str = """
|
self.todo: str = """
|
||||||
TODO:
|
TODO:
|
||||||
[] main.py@GENERAL - refactor to make the ChatGPT Code actually readable.
|
[] main.py@GENERAL - refactor to make the ChatGPT Code actually readable.
|
||||||
|
[] main.py@TODO - Refactor and make it look nicer! PRIO: HIGH
|
||||||
[] @Project_Structure - Fix this shit
|
[] @Project_Structure - Fix this shit
|
||||||
- Isnt too bad , we can work with the structure.
|
- Isnt too bad , we can work with the structure.
|
||||||
[] @ImportStructure - Fix the Import structure, it currently looks like ass. At least the local ImportStructure.
|
[x] @ImportStructure - Fix the Import structure, it currently looks like ass. At least the local ImportStructure.
|
||||||
- @LocalImportStructure => Fix by end of next week. (KW25)
|
- @LocalImportStructure => Fix by end of next week. (KW25)
|
||||||
"""
|
"""
|
||||||
# ------------------------------------------------------------------------------------------------------------------#
|
# ------------------------------------------------------------------------------------------------------------------#
|
||||||
@@ -37,6 +26,20 @@ Changelog:
|
|||||||
12.JUN.25@21:20 => Fixed Todo List Load Bug. Now loads properly. It was a import issue.
|
12.JUN.25@21:20 => Fixed Todo List Load Bug. Now loads properly. It was a import issue.
|
||||||
"""
|
"""
|
||||||
# ------------------------------------------------------------------------------------------------------------------#
|
# ------------------------------------------------------------------------------------------------------------------#
|
||||||
|
self.tldr : str = """
|
||||||
|
Quick TLDR:
|
||||||
|
If you see any "ref" in the main.py file you are probably looking at a reference to a certain file.
|
||||||
|
example: ref@todo/main.py , element int(x)
|
||||||
|
This is refering to the todo list with element of X
|
||||||
|
|
||||||
|
This can be for other things too, such as other Methods in Classes.
|
||||||
|
example: ref@tgtg_orderchecker/main.py@12:32
|
||||||
|
This is refering to the tgtg oc at main 12:32.
|
||||||
|
|
||||||
|
if you see any "@" , you are probably seeing a reference to the todo list.
|
||||||
|
for example element 3 in todo (@LocalImportStructure)
|
||||||
|
"""
|
||||||
|
# ---------------------------------------------------------------------------------------------------------------------#
|
||||||
|
|
||||||
# Methods to return the things we want.
|
# Methods to return the things we want.
|
||||||
def load_todo(self) -> str:
|
def load_todo(self) -> str:
|
||||||
@@ -45,6 +48,8 @@ Changelog:
|
|||||||
def load_changelog(self) -> str:
|
def load_changelog(self) -> str:
|
||||||
return self.changelog
|
return self.changelog
|
||||||
|
|
||||||
|
def load_tldr(self) -> str:
|
||||||
|
return self.tldr
|
||||||
|
|
||||||
# toodoo bug may also reside here. idk
|
# toodoo bug may also reside here. idk
|
||||||
todo_instance = todo()
|
todo_instance = todo()
|
||||||
|
|||||||
@@ -1,22 +1 @@
|
|||||||
{
|
{"products": ["Flaschen", "Bierflasche", "Kasten", "Dose", "Plastikflasche", "Joghurt Glas"], "prices": {"Flaschen": 0.25, "Bierflasche": 0.2, "Kasten": 3.0, "Dose": 0.25, "Plastikflasche": 0.25, "Joghurt Glas": 0.17}}
|
||||||
"products": [
|
|
||||||
"Flaschen",
|
|
||||||
"Bierflasche",
|
|
||||||
"Kasten",
|
|
||||||
"Dose",
|
|
||||||
"Plastikflasche",
|
|
||||||
"Monster",
|
|
||||||
"Joghurt Glas",
|
|
||||||
"nigger"
|
|
||||||
],
|
|
||||||
"prices": {
|
|
||||||
"Flaschen": 0.25,
|
|
||||||
"Bierflasche": 0.2,
|
|
||||||
"Kasten": 3.0,
|
|
||||||
"Dose": 0.25,
|
|
||||||
"Plastikflasche": 0.25,
|
|
||||||
"Monster": 0.25,
|
|
||||||
"Joghurt Glas": 0.17,
|
|
||||||
"nigger": 200.0
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user