Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions enable/savage/trait_defs/ui/qt4/svg_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,14 @@

from traitsui.qt4.editor import Editor

from pyface.qt import QtCore, QtSvg
from pyface.qt import QtCore

# import widget for different package cases
try:
from pyface.qt.QtSvg import QSvgWidget
except:
from PySide6.QtSvgWidgets import QSvgWidget


# -----------------------------------------------------------------------------
# 'SVGEditor' class:
Expand All @@ -44,7 +51,7 @@ def init(self, parent):
""" Finishes initializing the editor by creating the underlying toolkit
widget.
"""
self.control = QtSvg.QSvgWidget()
self.control = QSvgWidget()

# -------------------------------------------------------------------------
# Updates the editor when the object trait changes external to the editor:
Expand Down