Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
finesse
pykat
Commits
f16e4afe
Commit
f16e4afe
authored
Nov 28, 2013
by
Daniel Brown
Browse files
importing from QtSvg module rather than the QtGui
parent
c017f726
Changes
1
Hide whitespace changes
Inline
Side-by-side
pykat/gui/graphics.py
View file @
f16e4afe
...
...
@@ -7,6 +7,7 @@ Created on Fri Feb 01 09:13:03 2013
from
PyQt4.QtGui
import
*
from
PyQt4.Qt
import
*
from
PyQt4
import
QtSvg
import
pykat.components
import
exceptions
...
...
@@ -139,7 +140,7 @@ class SpaceQGraphicsItem(QGraphicsLineItem):
self
.
setPen
(
QPen
(
Qt
.
red
,
3
))
class
ComponentQGraphicsItem
(
QGraphicsSvgItem
):
class
ComponentQGraphicsItem
(
QtSvg
.
QGraphicsSvgItem
):
def
__init__
(
self
,
svgfile
,
component
,
nodes
):
QGraphicsSvgItem
.
__init__
(
self
,
svgfile
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment