Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Scientific Software
MDANSE
Commits
230fad10
Commit
230fad10
authored
Sep 04, 2015
by
eric pellegrini
Browse files
The jobPlugin is now a Frame
parent
e6067b15
Changes
1
Hide whitespace changes
Inline
Side-by-side
MDANSE/Framework/Plugins/JobPlugin.py
View file @
230fad10
...
...
@@ -43,7 +43,6 @@ from MDANSE import PLATFORM,REGISTRY
from
MDANSE.Externals.pubsub
import
pub
from
MDANSE.Framework.Plugins.ComponentPlugin
import
ComponentPlugin
from
MDANSE.GUI
import
DATA_CONTROLLER
from
MDANSE.GUI.WorkingPanel
import
WorkingPanel
from
MDANSE.GUI.ComboWidgets.ConfigurationPanel
import
ConfigurationPanel
from
MDANSE.GUI.ComboWidgets.JobHelpFrame
import
JobHelpFrame
...
...
@@ -167,29 +166,20 @@ class JobFrame(wx.Frame):
wx
.
Frame
.
__init__
(
self
,
parent
,
wx
.
ID_ANY
,
size
=
(
800
,
400
),
style
=
wx
.
DEFAULT_DIALOG_STYLE
|
wx
.
MINIMIZE_BOX
|
wx
.
MAXIMIZE_BOX
|
wx
.
RESIZE_BORDER
)
self
.
_jobType
=
jobType
self
.
_datakey
=
datakey
if
self
.
_datakey
is
not
None
:
data
=
REGISTRY
[
'input_data'
][
'mmtk_trajectory'
](
self
.
_datakey
)
DATA_CONTROLLER
[
filename
]
=
data
self
.
build_dialog
()
def
build_dialog
(
self
):
workingPanel
=
WorkingPanel
(
self
)
job
=
REGISTRY
[
'job'
][
self
.
_jobType
]
workingPanel
.
drop
(
self
.
_datakey
)
self
.
SetTitle
(
job
.
label
)
workingPanel
.
active_page
.
drop
(
self
.
_jobType
)
workingPanel
.
active_page
.
mgr
.
GetPane
(
workingPanel
.
active_page
.
currentWindow
).
Dock
()
data
=
REGISTRY
[
'input_data'
][
job
.
ancestor
[
0
]](
datakey
,
True
)
self
.
datakey
=
data
.
name
DATA_CONTROLLER
[
data
.
name
]
=
data
plugin
=
REGISTRY
[
'plugin'
][
self
.
_jobType
](
self
)
workingPanel
.
active_page
.
mgr
.
Update
()
self
.
SetTitle
(
"Run %s job"
%
self
.
_jobType
)
pub
.
sendMessage
(
"msg_set_data"
,
plugin
=
plugin
)
self
.
Bind
(
wx
.
EVT_CLOSE
,
self
.
on_quit
)
...
...
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