-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsave_project.py
More file actions
29 lines (26 loc) · 881 Bytes
/
save_project.py
File metadata and controls
29 lines (26 loc) · 881 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#Standard library imports
import datetime
import logging
import os
import shutil
import subprocess
import sys
import time
import webbrowser
#Third-party library imports
import tkinter as tk
from tkinter import messagebox
from tkinter import ttk
from PIL import Image, ImageTk
#Local imports
import importlib
import inspect
# Open a window with a prompt for a "project title", and buttons to save or cancel. This will be displayed at the top of the main window until the new project button is clicked again.
def save_project(root, definitions, logger):
title = project_title_entry.get()
if title == "":
messagebox.showwarning("Error", "Please enter a project title.")
else:
project_title_label.configure(text=f"Project: {workingtitle}")
project_title_entry.delete(0, tk.END)
project_title_window.destroy()