Skip to content

Instantly share code, notes, and snippets.

View CubanCongaMan's full-sized avatar

Roberto Luis Sanchez, P.E., P.G.; D,GE; F.ASCE CubanCongaMan

View GitHub Profile
#!/usr/bin/env python3
# 04/01/2026 Photo Selector Version 26 Rev 07
#Fix: Restored filenames below photos in Tab 2 preview
#Fix: Full filenames in Tab 2 left panel
#Fix: Tooltip on hover for Tab 1 thumbnails
#Fix: Added "Add Page" button for additional pages
#Author: RLS & Factory AI Droids
import os, shutil, re, tkinter as tk
from tkinter import filedialog, messagebox
#!/usr/bin/env python3
# 04/01/2026 Photo Selector Version 26 Rev 04
#Fix: New template auto-selection based on filename patterns (FRONT/BACK, WV/CU)
#Fix: Dynamic preview sizing - fills available space
#Author: RLS & Factory AI Droids
import os, shutil, re, tkinter as tk
from tkinter import filedialog, messagebox
from PIL import Image, ImageTk
@CubanCongaMan
CubanCongaMan / Photo_Selector_V26_Rev_01.py
Created April 1, 2026 14:05
This is Photo_Selector_V26_Rev_01.py, which serves to select photos and automatically place them in Word table cells in four templates formats
#!/usr/bin/env python3
# 04/01/2026 Photo Selector Version 26 Rev 01
#Fix: New template auto-selection based on filename patterns (FRONT/BACK, WV/CU)
#Author: RLS & Factory AI Droids
#Fix: Updated deprecated trace() to trace_add() for Tkinter compatibility
#Fix: Widened preview panel to 40% using PanedWindow for resizable layout
#Fix: Report Preview tab now uses PanedWindow with adjustable divider
import os, shutil, re, tkinter as tk
from tkinter import filedialog, messagebox
#!/usr/bin/env python3
# 03/30/2026 Photo Selector Version 25 Rev 11
#Author: RLS & Factory AI Droids
#Fix: Updated deprecated trace() to trace_add() for Tkinter compatibility
#Fix: Widened preview panel to 40% using PanedWindow for resizable layout
#Fix: Report Preview tab now uses PanedWindow with adjustable divider
import os, shutil, re, tkinter as tk
from tkinter import filedialog, messagebox
from PIL import Image, ImageTk