fixed some UI, and temporarily did some better UX for µscan

This commit is contained in:
2025-09-13 16:47:14 +02:00
parent 8d81052d4c
commit cf55db126d
5 changed files with 579 additions and 121 deletions

View File

@@ -16,14 +16,26 @@ import queue
import numpy as np
import shutil
# @LocalImportStructure ; ref@todo/main.py , Element 3
from PfandApplication.wiki import main as wiki
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.main import todo_instance
if __name__ == "__main__":
try:
from wiki import main as wiki
from pfand_scanner import launch_pfand_scanner
from updater import open_updater as open_updater, run_silent_update
from tgtg_orderchecker import main as tgtg
from tgtg_orderchecker import setupkey as tgtg_kt
from todo.main import todo_instance
except ImportError:
print("tried to import without package name. failed, trying to import using package name now")
pass
else:
# @LocalImportStructure ; ref@todo/main.py , Element 3
from PfandApplication.wiki import main as wiki
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.main import todo_instance
class Achievement:
def __init__(self, title, description, condition_type, condition_value):
@@ -523,7 +535,8 @@ class PfandCalculator:
about_window, text="Load Todo", command=self.create_todo_list
)
)
todo_button.grid(row=2, column=3, padx=10, pady=10, sticky="ew")
todo_button.grid(row=3, column=0, columnspan=2, padx=10, pady=10, sticky="ew")
# ref@todo/main.py
def create_todo_list(self):