From 7450eb70e162a85219a864e019672dbc4b5a3cfb Mon Sep 17 00:00:00 2001 From: ldam <ldam@passcal.nmt.edu> Date: Wed, 30 Aug 2023 09:24:39 -0600 Subject: [PATCH] remove setting environment variable QT_MAC_WANTS_LAYER to 1 --- sohstationviewer.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/sohstationviewer.py b/sohstationviewer.py index 19c5de671..9fa480d0c 100755 --- a/sohstationviewer.py +++ b/sohstationviewer.py @@ -7,17 +7,6 @@ from PySide6 import QtWidgets from sohstationviewer.view.main_window import MainWindow -# Enable Layer-backing for MacOs version >= 11 -# Only needed if using the pyside2 library with version>=5.15. -# Layer-backing is always enabled in pyside6. -os_name, version, *_ = platform.platform().split('-') -# if os_name == 'macOS' and version >= '11': -# mac OSX 11.6 appear to be 10.16 when read with python and still required this -# environment variable -if os_name == 'macOS': - os.environ['QT_MAC_WANTS_LAYER'] = '1' - - def main(): app = QtWidgets.QApplication(sys.argv) wnd = MainWindow() -- GitLab