Merge pull request #305 from juliangilbey/fix-deprecation-warning

Fix logging module DeprecationWarning
This commit is contained in:
Daniel Pizetta
2022-01-03 10:28:06 -03:00
committed by GitHub
+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):