You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Increase window size to 750x580 for better text visibility on Windows
- Add "Start a New Budget" section with 3 buttons (3, 5, 10 year)
- Bundle OSP budget templates with the application
- Fix Windows "Open Folder" functionality
- Update PyInstaller specs to include template files
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
messagebox.showerror("Error", f"No template available for {years}-year budget")
204
+
return
205
+
206
+
template_path=get_bundled_path(template_name)
207
+
208
+
ifnotos.path.exists(template_path):
209
+
messagebox.showerror("Error", f"Template file not found: {template_name}\n\nPlease ensure the template is bundled with the application.")
210
+
return
211
+
212
+
# Ask user where to save the new budget
213
+
save_path=filedialog.asksaveasfilename(
214
+
title=f"Save New {years}-Year Budget As",
215
+
defaultextension=".xlsx",
216
+
filetypes=[("Excel files", "*.xlsx")],
217
+
initialfile=f"My_{years}_Year_Budget.xlsx",
218
+
initialdir=str(Path.home() /"Desktop")
219
+
)
220
+
221
+
ifsave_path:
222
+
try:
223
+
shutil.copy2(template_path, save_path)
224
+
self.excel_file.set(save_path)
225
+
self.status_text.set(f"Created new {years}-year budget: {os.path.basename(save_path)}")
226
+
messagebox.showinfo("Success", f"New {years}-year budget created!\n\nFile: {os.path.basename(save_path)}\n\nOpen this file in Excel to fill in your budget details, then return here to generate the justification.")
227
+
exceptExceptionase:
228
+
messagebox.showerror("Error", f"Failed to create budget file:\n\n{e}")
0 commit comments