Before addition of tips.

This commit is contained in:
lwark
2024-06-10 14:18:11 -05:00
parent c94ead5db2
commit 3b9dc69618
14 changed files with 31 additions and 97 deletions

View File

@@ -8,6 +8,7 @@ from PyQt6.QtWidgets import QMainWindow, QFileDialog
logger = logging.getLogger(f"submissions.{__name__}")
def select_open_file(obj:QMainWindow, file_extension:str) -> Path:
"""
File dialog to select a file to read from
@@ -29,6 +30,7 @@ def select_open_file(obj:QMainWindow, file_extension:str) -> Path:
obj.last_dir = fname.parent
return fname
def select_save_file(obj:QMainWindow, default_name:str, extension:str) -> Path:
"""
File dialog to select a file to write to