Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pykat
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sebastian Steinlechner
pykat
Commits
86fbe41b
Commit
86fbe41b
authored
10 years ago
by
Daniel Brown
Browse files
Options
Downloads
Patches
Plain Diff
missing node network gui check
parent
8b9184bc
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
pykat/node_network.py
+10
-2
10 additions, 2 deletions
pykat/node_network.py
with
10 additions
and
2 deletions
pykat/node_network.py
+
10
−
2
View file @
86fbe41b
...
@@ -4,9 +4,14 @@ Created on Sun Jan 27 10:02:41 2013
...
@@ -4,9 +4,14 @@ Created on Sun Jan 27 10:02:41 2013
@author: Daniel
@author: Daniel
"""
"""
import
exceptions
from
pykat
import
USE_GUI
,
NoGUIException
if
USE_GUI
:
import
pykat.gui.graphics
import
pykat.gui.graphics
import
pykat.exceptions
as
pkex
import
pykat.exceptions
as
pkex
from
pykat.components
import
Component
from
pykat.components
import
Component
from
pykat.detectors
import
BaseDetector
as
Detector
from
pykat.detectors
import
BaseDetector
as
Detector
from
pykat.utilities.optics.gaussian_beams
import
beam_param
from
pykat.utilities.optics.gaussian_beams
import
beam_param
...
@@ -543,6 +548,9 @@ class Node(object):
...
@@ -543,6 +548,9 @@ class Node(object):
self
.
_item
.
scene
().
removeItem
(
self
.
_item
)
self
.
_item
.
scene
().
removeItem
(
self
.
_item
)
def
getQGraphicsItem
(
self
,
dx
=
0
,
dy
=
0
,
nsize
=
8
,
parent
=
None
):
def
getQGraphicsItem
(
self
,
dx
=
0
,
dy
=
0
,
nsize
=
8
,
parent
=
None
):
if
not
USE_GUI
:
raise
NoGUIException
if
self
.
_item
==
None
:
if
self
.
_item
==
None
:
self
.
_item
=
pykat
.
gui
.
graphics
.
NodeQGraphicItem
(
self
,
self
.
_item
=
pykat
.
gui
.
graphics
.
NodeQGraphicItem
(
self
,
dx
,
dy
,
dx
,
dy
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment