written a todo and idk
This commit is contained in:
@@ -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.tgtg_orderchecker import main as tgtg
|
||||
from PfandApplication.tgtg_orderchecker import setupkey as tgtg_kt
|
||||
from PfandApplication.todo import main as todo
|
||||
|
||||
class Achievement:
|
||||
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.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
|
||||
def TGTG_credits(self):
|
||||
about_tgtg = tk.Toplevel(self.root)
|
||||
@@ -1692,7 +1716,7 @@ class PfandCalculator:
|
||||
app = PfandCalculator(root)
|
||||
|
||||
#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")
|
||||
ico = Image.open(icon_path)
|
||||
photo = ImageTk.PhotoImage(ico)
|
||||
|
||||
Reference in New Issue
Block a user