Skip to content

Commit

Permalink
code cleanup shiboken and pyside (#118)
Browse files Browse the repository at this point in the history
- Code cleanup qt4 and pyside
  • Loading branch information
eduardoChaucaGallegos authored Jun 19, 2024
1 parent e9e7366 commit 2bc2c73
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 2bc2c73

Please sign in to comment.