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
86fbe41b
Commit
86fbe41b
authored
Nov 01, 2014
by
Daniel Brown
Browse files
missing node network gui check
parent
8b9184bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
pykat/node_network.py
View file @
86fbe41b
...
...
@@ -4,9 +4,14 @@ Created on Sun Jan 27 10:02:41 2013
@author: Daniel
"""
import
exceptions
import
pykat.gui.graphics
from
pykat
import
USE_GUI
,
NoGUIException
if
USE_GUI
:
import
pykat.gui.graphics
import
pykat.exceptions
as
pkex
from
pykat.components
import
Component
from
pykat.detectors
import
BaseDetector
as
Detector
from
pykat.utilities.optics.gaussian_beams
import
beam_param
...
...
@@ -543,6 +548,9 @@ class Node(object):
self
.
_item
.
scene
().
removeItem
(
self
.
_item
)
def
getQGraphicsItem
(
self
,
dx
=
0
,
dy
=
0
,
nsize
=
8
,
parent
=
None
):
if
not
USE_GUI
:
raise
NoGUIException
if
self
.
_item
==
None
:
self
.
_item
=
pykat
.
gui
.
graphics
.
NodeQGraphicItem
(
self
,
dx
,
dy
,
...
...
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