written a todo and idk
This commit is contained in:
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
*.pyc
|
||||||
@@ -21,6 +21,7 @@ from PfandApplication.pfand_scanner import launch_pfand_scanner
|
|||||||
from PfandApplication.updater import open_updater as open_updater, run_silent_update
|
from PfandApplication.updater import open_updater as open_updater, run_silent_update
|
||||||
from PfandApplication.tgtg_orderchecker import main as tgtg
|
from PfandApplication.tgtg_orderchecker import main as tgtg
|
||||||
from PfandApplication.tgtg_orderchecker import setupkey as tgtg_kt
|
from PfandApplication.tgtg_orderchecker import setupkey as tgtg_kt
|
||||||
|
from PfandApplication.todo import main as todo
|
||||||
|
|
||||||
class Achievement:
|
class Achievement:
|
||||||
def __init__(self, title, description, condition_type, condition_value):
|
def __init__(self, title, description, condition_type, condition_value):
|
||||||
@@ -413,6 +414,29 @@ class PfandCalculator:
|
|||||||
close_button = tk.Button(about_window, text="Schließen", command=about_window.destroy)
|
close_button = tk.Button(about_window, text="Schließen", command=about_window.destroy)
|
||||||
close_button.grid(row=2, column=1, padx=10, pady=10, sticky="ew")
|
close_button.grid(row=2, column=1, padx=10, pady=10, sticky="ew")
|
||||||
|
|
||||||
|
todo_button = tk.Button(about_window, text="Load Todo", command=self.create_todo_list)
|
||||||
|
todo_button.grid(row=3,column=2,padx=10,pady=10,sticky="ew")
|
||||||
|
|
||||||
|
# Todo
|
||||||
|
def create_todo_list(self):
|
||||||
|
todo = tk.Toplevel(self.root)
|
||||||
|
todo.title("Todo Liste")
|
||||||
|
todo.resizable(True,True)
|
||||||
|
|
||||||
|
for col in range(2):
|
||||||
|
todo.grid_columnconfigure(col,weight=1)
|
||||||
|
todo.grid_rowconfigure(0,weight=0)
|
||||||
|
|
||||||
|
# Shit will display here that is going to be loaded from external
|
||||||
|
label_todo = tk.Label (
|
||||||
|
todo,
|
||||||
|
text=(f"{todo_instance.load_todo()}"),
|
||||||
|
padx=10,
|
||||||
|
pady=10,
|
||||||
|
justify="center",
|
||||||
|
anchor="center"
|
||||||
|
)
|
||||||
|
|
||||||
# TGTG Credits
|
# TGTG Credits
|
||||||
def TGTG_credits(self):
|
def TGTG_credits(self):
|
||||||
about_tgtg = tk.Toplevel(self.root)
|
about_tgtg = tk.Toplevel(self.root)
|
||||||
@@ -1692,7 +1716,7 @@ class PfandCalculator:
|
|||||||
app = PfandCalculator(root)
|
app = PfandCalculator(root)
|
||||||
|
|
||||||
#Icon (Version Pineapple | not really sure if this works yet!)
|
#Icon (Version Pineapple | not really sure if this works yet!)
|
||||||
#TODO: Check if this shit works (On Windows and Linux)
|
#TODO: Check if this shit works (On Windows and Linux) ; This works checked as of 10 JUN
|
||||||
icon_path = os.path.join(os.getcwd(), "PfandApplication", "images", "versions", "pineapple.png")
|
icon_path = os.path.join(os.getcwd(), "PfandApplication", "images", "versions", "pineapple.png")
|
||||||
ico = Image.open(icon_path)
|
ico = Image.open(icon_path)
|
||||||
photo = ImageTk.PhotoImage(ico)
|
photo = ImageTk.PhotoImage(ico)
|
||||||
|
|||||||
0
PfandApplication/todo/__init__.py
Normal file
0
PfandApplication/todo/__init__.py
Normal file
63
PfandApplication/todo/main.py
Normal file
63
PfandApplication/todo/main.py
Normal file
@@ -0,0 +1,63 @@
|
|||||||
|
class todo:
|
||||||
|
def __init__(self):
|
||||||
|
#------------------------------------------------------------------------------------------------------------------#
|
||||||
|
self.todo : str = """
|
||||||
|
|
||||||
|
TODO:
|
||||||
|
[] main.py@433 - fix this to actually load the Todo List cause currently its dumb as fuck.
|
||||||
|
- Do this tmrw 11.JUN.25! easy task. at least it should be.
|
||||||
|
[] main.py@GENERAL - refactor to make the ChatGPT Code actually readable.
|
||||||
|
[] @Project_Structure - Fix this shit
|
||||||
|
|
||||||
|
"""
|
||||||
|
#------------------------------------------------------------------------------------------------------------------#
|
||||||
|
self.pineapple="""
|
||||||
|
⠀⠀⠀⠀⠀⢀⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣴⡿⠛⣷⡄⠀⠀⠀⠀⠀⢀⣀⣤⣤⣶⠄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
||||||
|
⠀⠀⠀⠀⠀⠘⠻⣿⣿⢶⣤⣀⠀⠀⠀⢀⣾⠟⠀⠀⠘⢿⡆⠀⣠⣴⠿⣻⣿⠟⠋⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
||||||
|
⠀⠀⠀⠀⠀⠀⠀⠀⠻⣷⡈⠻⣷⣄⠀⣼⡟⠀⠀⠀⠀⠸⣷⣼⠟⠁⣴⠿⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
||||||
|
⠀⠀⠀⠀⢰⣤⣄⣀⠀⠘⣿⡀⠈⠻⣷⡿⠀⠀⠀⠀⠀⠀⢹⡇⠀⣸⡟⠀⠀⠀⣀⣠⣤⣶⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
||||||
|
⠀⠀⠀⠀⠀⠉⠻⣿⣟⠿⣿⣿⡄⠀⢸⡇⠀⠀⣤⣿⣦⠀⠸⣿⢰⣿⣤⣴⠿⠛⣻⡿⠛⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
||||||
|
⠀⠀⠀⠀⠀⠀⠀⠀⠙⢷⣄⠉⠛⢷⣼⡇⠀⣴⠟⠁⢻⣧⡀⣿⡾⠟⠁⠀⣠⡿⠋⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
||||||
|
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠻⣧⠀⠀⠙⢷⣾⡟⠀⠀⠀⢻⣿⠟⠁⠀⢀⣾⠟⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
||||||
|
⠀⠀⠀⠀⠀⠀⢀⣤⣀⠀⠀⢻⣧⠀⠀⢸⣿⠀⠀⠀⠀⠀⢿⡆⠀⢀⣾⠋⠀⢐⣠⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
||||||
|
⠀⠀⠀⠀⠀⠀⠀⠙⠻⣿⣦⣅⣿⡆⠀⢸⡿⠀⠀⣀⠀⠀⢸⣇⠀⣼⣯⣴⣿⣿⠟⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
||||||
|
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠘⣿⣝⠻⣷⣄⢸⡇⢀⣾⠿⣷⡀⠘⣿⣴⠟⠋⣴⠟⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
||||||
|
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢈⣿⣏⠉⠹⣿⣇⣾⠏⠀⠹⣧⣰⡿⠃⢀⣾⠏⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
||||||
|
⠀⠀⠀⠀⠀⠀⠀⠀⠘⢿⣶⣤⣿⣆⠀⠘⢿⣿⠀⠀⠀⢿⡏⠀⢀⣾⣧⣶⣾⣿⠇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
||||||
|
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⣿⡝⠻⢷⣤⣸⡧⠀⠀⠀⢸⣧⣴⠟⢋⣴⡟⠃⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
||||||
|
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⣿⡄⠀⠙⠿⠷⠀⠀⠀⣿⠟⠁⢠⣾⠏⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
||||||
|
⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣤⡶⢿⡿⣿⠿⠿⠿⠿⠿⠿⣿⣷⠿⠾⢿⣤⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
||||||
|
⠀⠀⠀⠀⠀⠀⠀⣠⣴⠟⠋⠀⠀⣽⣏⠀⠀⠀⠀⠀⠀⣸⢷⣄⠀⠀⠉⠛⣷⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
||||||
|
⠀⠀⠀⠀⠀⢀⣶⠻⡅⠀⠀⣠⡞⠁⠙⢧⠀⠀⠀⠀⡼⠃⠀⠙⢷⣄⠀⣼⠁⠙⢷⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
||||||
|
⠀⠀⠀⠀⣰⡿⠁⠀⢿⣄⡾⠋⠀⠀⠀⠈⢳⣄⢀⡾⠁⠀⠀⠀⠀⠙⣷⣏⠀⠀⠈⠻⣧⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
||||||
|
⠀⠀⠀⣼⡟⠀⠀⣀⡶⢻⡀⠀⠀⠀⠀⠀⠀⣹⣿⡀⠀⠀⠀⠀⠀⢠⡟⠈⠛⢦⣀⠀⢹⣷⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
||||||
|
⠀⠀⣼⣟⠀⣠⡴⠋⠀⠀⠙⣦⠀⠀⠀⢀⡴⠋⠀⠙⢦⡀⠀⠀⣰⠟⠀⠀⠀⠀⠉⠛⣾⣿⣷⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
||||||
|
⠀⣰⣿⡽⣟⠁⠀⠀⠀⠀⠀⠈⢷⣄⡴⠋⠀⠀⠀⠀⠀⠙⢦⣴⠋⠀⠀⠀⠀⠀⠀⢰⡏⠀⢹⣷⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
||||||
|
⢀⣿⠃⠀⠸⣦⠀⠀⠀⠀⠀⢀⡴⠿⢧⡀⠀⠀⠀⠀⠀⢀⡼⠙⠳⢤⡀⠀⠀⠀⢠⡏⠀⠀⠈⢿⡆⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
||||||
|
⣸⡟⠀⠀⠀⠘⢧⡀⠀⢀⡴⠋⠀⠀⠈⠹⣦⡀⠀⢀⣴⠏⠁⠀⠀⠀⠙⠲⢤⣠⡏⠀⠀⠀⠀⠸⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
||||||
|
⣿⠃⠀⠀⠀⠀⢈⣿⣾⠋⠀⠀⠀⠀⠀⠀⠀⠛⣦⡞⠁⠀⠀⠀⠀⠀⠀⠀⣤⠟⠓⠦⣤⣀⠀⠀⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
||||||
|
⣿⠀⠀⣀⡤⠖⠋⠀⠙⢷⡀⠀⠀⠀⠀⠀⣠⠞⠁⠙⠳⣤⡀⠀⠀⠀⢀⡼⠋⠀⠀⠀⠀⠈⠙⣳⣿⡆⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
||||||
|
⣿⠷⣏⠉⠀⠀⠀⠀⠀⠀⠙⢦⡀⢀⣰⠞⠁⠀⠀⠀⠀⠈⠙⠶⢤⣠⠟⠀⠀⠀⠀⠀⠀⠀⣰⠏⣿⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
||||||
|
⣿⠀⠹⣆⠀⠀⠀⠀⠀⠀⢀⣠⠟⢯⣄⠀⠀⠀⠀⠀⠀⠀⠀⣠⠞⠉⠓⢶⣄⡀⠀⠀⠀⡼⠃⠀⣿⠃⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
||||||
|
⣿⡆⠀⠈⢳⡄⠀⣀⣤⠞⠋⠁⠀⠀⠉⠳⣄⡀⠀⠀⠀⣠⡞⠃⠀⠀⠀⠀⠀⠉⠛⢳⣾⣥⣀⡀⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
||||||
|
⢸⣷⣀⣀⡤⠾⢿⣁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⢳⣤⣞⠃⠀⠀⠀⠀⠀⠀⠀⢀⡴⠋⠀⠀⠀⢹⡿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
||||||
|
⠀⣿⡏⠁⠀⠀⠀⠙⢶⣀⠀⠀⠀⠀⠀⢀⣠⠶⠋⠁⠉⠳⠦⣄⣀⠀⠀⠀⣠⠟⠀⠀⠀⠀⢀⣿⠃⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
||||||
|
⠀⠹⣷⡄⠀⠀⠀⠀⠀⠉⠳⣦⣀⣤⠖⠋⠁⠀⠀⠀⠀⠀⠀⠀⠉⢙⣶⢾⣥⣀⠀⠀⠀⠀⣼⡟⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
||||||
|
⠀⠀⠹⣧⡀⠀⠀⠀⣠⣤⠖⠛⠙⠳⣤⡀⠀⠀⠀⠀⠀⠀⠀⢀⡴⠋⠀⠀⠀⠈⠙⠛⢳⣾⡿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
||||||
|
⠀⠀⠀⠹⣷⣶⡛⠉⠁⠀⠀⠀⠀⠀⠀⠉⠳⠦⣄⡀⣀⡴⠞⠉⠀⠀⠀⠀⠀⠀⢀⡴⣿⡟⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
||||||
|
⠀⠀⠀⠀⠙⢿⣙⢦⣄⡀⠀⠀⠀⠀⠀⠀⢀⣀⡼⠛⠛⠶⢤⣀⣀⠀⠀⠀⣀⡴⢋⣼⠏⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
||||||
|
⠀⠀⠀⠀⠀⠈⠻⣦⡈⠙⢦⣄⣀⣠⡴⠚⠋⠁⠀⠀⠀⠀⠀⠈⠉⢛⡶⠾⣧⣴⡟⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
||||||
|
⠀⠀⠀⠀⠀⠀⠀⠈⠻⣷⣾⡛⠙⠳⢦⣄⡀⠀⠀⠀⠀⢀⣠⡴⠚⢉⣠⣴⠟⠉⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
||||||
|
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠻⠷⣦⣄⣀⣉⣻⣶⢴⣞⣋⣠⣴⡶⠟⠋⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
||||||
|
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠉⠉⠛⠛⠛⠉⠉⠉⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
||||||
|
"""
|
||||||
|
#------------------------------------------------------------------------------------------------------------------#
|
||||||
|
|
||||||
|
# This Project is certainly older than mucapy , But still i declare types now. in todo code xD
|
||||||
|
# Anyways. This function maybe needs fixing. due too toodoo bug (bug1)
|
||||||
|
def load_todo(self) -> str:
|
||||||
|
return self.todo
|
||||||
|
|
||||||
|
|
||||||
|
# toodoo bug may also reside here. idk
|
||||||
|
todo_instance = todo()
|
||||||
1
products.json
Normal file
1
products.json
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"products": ["Flaschen", "Bierflasche", "Kasten", "Dose", "Plastikflasche", "Monster", "Joghurt Glas"], "prices": {"Flaschen": 0.25, "Bierflasche": 0.2, "Kasten": 3.0, "Dose": 0.25, "Plastikflasche": 0.25, "Monster": 0.25, "Joghurt Glas": 0.17}}
|
||||||
Reference in New Issue
Block a user