From 4588301717775801ae534b870a5d9af30a1e2963 Mon Sep 17 00:00:00 2001 From: Pierre Raybaut Date: Tue, 10 Sep 2024 09:48:30 +0200 Subject: [PATCH] Fix missing `QPalette.Background` attribute in Qt6 (deprecated in Qt5) Fix #77 --- guidata/widgets/console/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guidata/widgets/console/base.py b/guidata/widgets/console/base.py index 3217b92..ffffc0e 100644 --- a/guidata/widgets/console/base.py +++ b/guidata/widgets/console/base.py @@ -368,7 +368,7 @@ def set_palette(self, background, foreground): palette = QPalette() # palette.setColor(QPalette.Base, background) palette.setColor(QPalette.Text, foreground) - palette.setColor(QPalette.Background, background) + palette.setColor(QPalette.Window, background) self.setPalette(palette) # Set the right background color when changing color schemes