Use .qrc file to icons and splashscreen

This commit is contained in:
alessandro90
2019-03-29 21:27:31 +01:00
parent 934b9ab277
commit d334b8f77e
8 changed files with 11343 additions and 8 deletions

View File

@@ -1,12 +1,20 @@
from functools import partial
import hashlib
import re
import sys
import os
from pandas import read_csv
from PyQt5.QtWidgets import QMessageBox
import constants
def resource_path(relative_path):
try:
base_path = sys._MEIPASS
except Exception:
base_path = os.path.abspath(".")
return os.path.join(base_path, relative_path)
def uncheck_and_emit(button):
if button.isChecked():
@@ -14,7 +22,7 @@ def uncheck_and_emit(button):
button.clicked.emit()
def pop_up(cls, title, text,
informative_text = None,
informative_text = None,
connection = None,
is_question = False,
default_btn = QMessageBox.Yes):