You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
713 B
37 lines
713 B
from PyQt5.QtWidgets import QMessageBox |
|
|
|
def log_writer(msg): |
|
with open('log\\log.txt', 'a') as log_file: |
|
log_file.write(msg+'\n') |
|
|
|
|
|
|
|
def empty_field_alert(msg = 'Empty field alert'): |
|
alert_dialog_box = QMessageBox() |
|
alert_dialog_box.setWindowTitle('Hey wait !!!!') |
|
alert_dialog_box.setIcon(QMessageBox.Warning) |
|
alert_dialog_box.setText(msg) |
|
alert_dialog_box.exec_() |
|
|
|
|
|
|
|
class NOtOutputFolder(Exception): |
|
pass |
|
|
|
class NoConfigFile(Exception): |
|
pass |
|
|
|
class NotArchiveFolder(Exception): |
|
pass |
|
|
|
class NoExcecuatble(Exception): |
|
pass |
|
|
|
class NoSystemFile(Exception): |
|
pass |
|
|
|
class SeasaveProcessRunning(Exception): |
|
pass |
|
|
|
class DamCtdSysFileNotFound(Exception): |
|
pass |