From 9394fb26642adc8a94b50a8db5921082fd0d0fa2 Mon Sep 17 00:00:00 2001 From: Diego Tavares da Silva Date: Mon, 29 Jan 2024 10:02:34 -0800 Subject: [PATCH] Fix python lint --- cuegui/cuegui/Main.py | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/cuegui/cuegui/Main.py b/cuegui/cuegui/Main.py index 567467216..e46102b56 100644 --- a/cuegui/cuegui/Main.py +++ b/cuegui/cuegui/Main.py @@ -78,9 +78,6 @@ def startup(app_name, app_version, argv): mainWindow.displayStartupNotice() mainWindow.show() - # Custom qt message handler to ignore known warnings - QtCore.qInstallMessageHandler(warning_handler) - # Open all windows that were open when the app was last closed for name in mainWindow.windows_names[1:]: if settings.value("%s/Open" % name, False): @@ -95,19 +92,6 @@ def startup(app_name, app_version, argv): app.aboutToQuit.connect(closingTime) # pylint: disable=no-member app.exec_() -def warning_handler(msg_type, msg_log_context, msg_string): - """ - Ignore known warning messages (from LogViewPlugin for now) that - happens when multi-threaded/multiple updates in a short span - """ - if ('QTextCursor::setPosition:' in msg_string or - 'SelectionRequest too old' in msg_string): - return - else: - # Todo: write to a log file - print ('{}: {}, Message: {}'.format( - str(msg_type), str(msg_log_context), str(msg_string))) - def closingTime(): """Window close callback.""" logger.info("Closing all threads...")