ui changes, formatting

This commit is contained in:
WorldTeacher
2024-06-05 15:39:55 +02:00
parent 98849f22a0
commit a56c70a8b4
26 changed files with 1163 additions and 402 deletions

View File

@@ -4,10 +4,12 @@ import sys
from omegaconf import OmegaConf
from PyQt6 import QtCore, QtGui, QtWidgets
from src.logic.log import MyLogger
from src import Icon
from src.logic.log import MyLogger
from .dialog_sources.Ui_mail_preview import Ui_eMailPreview as MailPreviewDialog
from .mailTemplate import MailTemplateDialog
config = OmegaConf.load("config.yaml")
logger = MyLogger("Mail")
@@ -32,7 +34,7 @@ class Mail_Dialog(QtWidgets.QDialog, MailPreviewDialog):
# app_subject,
# prof_name,
)
self.appid = app_id
self.appname = app_name
self.subject = app_subject
@@ -47,7 +49,7 @@ class Mail_Dialog(QtWidgets.QDialog, MailPreviewDialog):
# if none of the radio buttons is checked, disable the accept button of the dialog
self.setWindowIcon(Icon("mail").icon)
self.btn_okay.setEnabled(False)
Icon("edit_note",self.newTemplate)
Icon("edit_note", self.newTemplate)
self.newTemplate.clicked.connect(self.open_new_template)
if default_mail is not None: