Spaces:
Running
Running
Commit History
-
🐳 27/08 - 12:50 - a warning "overflow" is displayed if an item is added which exceeds the remaining available space, can we change that to a pop warning that is displayed? or something that is more o
Verified signaturef02e764 -
🐳 27/08 - 11:09 - change the KGN logo in all locations to the file i have just uploaded
Verified signature70ea623 -
🐳 27/08 - 11:09 - change the KGN logo in all locations to the file i have just uploaded
Verified signature47f1298 -
📁 Upload media files through DeepSite
Verified signature4401ab5
-
add in add item options quantity to multiply items added
Verified signature8ecd4e0 -
replace logo.png with this image
Verified signature238bb87 -
Upload 1 media file(s)
Verified signature07957ab -
make the image just added twice its size and remove the box that states "try the live demo on hugging face spaces"
Verified signatureb9dfa58 -
add this image next to "Load Allocator" in the window just above "configure your space"
Verified signature3fb8e1f -
add to container dimensions total weight and set to 7200kgs, add field to enter the weight of each item added and display weight allowance remaining
Verified signaturee4fea1b -
include this in the main body
Verified signatureb83b42b -
change logo to this
Verified signature3a41f8c -
give it a modern look with glass effect and transparency, rename "Space GRid wizard" to "Load allocator" and change logo at the top to the uploaded file
Verified signaturee534b1a -
Upload 1 media file(s)
Verified signaturef6fb90a -
# space_allocator_final.py
Verified signatureimport tkinter as tk from tkinter import ttk, messagebox from PIL import Image, ImageTk import customtkinter as ctk import sys, os # ---------- Configuration ---------- DEFAULT_W = 600 DEFAULT_H = 250 WINDOW_W = 1200 WINDOW_H = 700 CANVAS_BG = "#0f1115" GLASS_BG = "#1b1d22" ACCENT = "#3b82f6" ANIMATION_FRAMES = 20 # ~0.4s # ---------- Helper function for PyInstaller ---------- def resource_path(relative_path): try: base_path = sys._MEIPASS except Exception: base_path = os.path.abspath(".") return os.path.join(base_path, relative_path) # ---------- Data ---------- class Item: def __init__(self, name, length, width): self.name = name self.length = float(length) self.width = float(width) self.area = self.length * self.width self.curr_x = 0 self.curr_y = 0 self.tag = name # ---------- Grid-based packing ---------- def grid_pack(items, container_w, container_h, cell_size=5): cols = max(1, int(…1dd531b -
initial commit
Verified signature273248e