Fix logging module DeprecationWarning

This commit is contained in:
Julian Gilbey
2021-12-21 14:19:41 +00:00
parent 93f97838ed
commit a017e667b0
+4 -4
View File
@@ -214,10 +214,10 @@ def _apply_application_patches(QCoreApplication, QPalette, QColor, palette):
app_palette.setColor(QPalette.Normal, QPalette.Link, qcolor)
app.setPalette(app_palette)
else:
_logger.warn("No QCoreApplication instance found. "
"Application patches not applied. "
"You have to call load_stylesheet function after "
"instantiation of QApplication to take effect. ")
_logger.warning("No QCoreApplication instance found. "
"Application patches not applied. "
"You have to call load_stylesheet function after "
"instantiation of QApplication to take effect. ")
def _load_stylesheet(qt_api='', palette=None):