From 2bc2c733744d18362f8bb7e350aa2b615977a80f Mon Sep 17 00:00:00 2001 From: Eduardo Chauca <166560435+eduardoChaucaGallegos@users.noreply.github.com> Date: Wed, 19 Jun 2024 13:22:35 -0500 Subject: [PATCH] code cleanup shiboken and pyside (#118) - Code cleanup qt4 and pyside --- engine.py | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/engine.py b/engine.py index f79cb55..c086d76 100644 --- a/engine.py +++ b/engine.py @@ -955,22 +955,14 @@ def __get_wrap_instance_method(self): This checks Qt versions in order of: - 1. PySide / shiboken - 2. PySide2 / shiboken2 - 3. PySide6 / shiboken6 + 1. PySide2 / shiboken2 + 2. PySide6 / shiboken6 This method is currently only necessary to get the VRED main window. If more cases arise such that the correct shiboken module is found for the current Qt version, this should be provided by the tk-core QtImporter. """ - try: - from shiboken import wrapInstance - - return wrapInstance - except: - pass - try: from shiboken2 import wrapInstance