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
20802da1
Commit
20802da1
authored
Oct 04, 2016
by
eric pellegrini
Browse files
Merge branch 'feature-relocate-mdanse-app' into develop
parents
38a15754
c9ca4d87
Changes
7
Hide whitespace changes
Inline
Side-by-side
CHANGELOG
View file @
20802da1
test
version 1.0:
- first release
MDANSE/GUI/Apps.py
0 → 100644
View file @
20802da1
#MDANSE : Molecular Dynamics Analysis for Neutron Scattering Experiments
#------------------------------------------------------------------------------------------
#Copyright (C)
#2015- Eric C. Pellegrini Institut Laue-Langevin
#BP 156
#6, rue Jules Horowitz
#38042 Grenoble Cedex 9
#France
#pellegrini[at]ill.fr
#goret[at]ill.fr
#aoun[at]ill.fr
#
#This library is free software; you can redistribute it and/or
#modify it under the terms of the GNU Lesser General Public
#License as published by the Free Software Foundation; either
#version 2.1 of the License, or (at your option) any later version.
#
#This library is distributed in the hope that it will be useful,
#but WITHOUT ANY WARRANTY; without even the implied warranty of
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
#Lesser General Public License for more details.
#
#You should have received a copy of the GNU Lesser General Public
#License along with this library; if not, write to the Free Software
#Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
'''
Created on Oct 04, 2016
:author: Eric C. Pellegrini
'''
import
wx
from
MDANSE.Framework.Plugins.Plotter.PlotterPlugin
import
PlotterFrame
from
MDANSE.GUI.ElementsDatabaseEditor
import
ElementsDatabaseEditor
from
MDANSE.GUI.MainFrame
import
MainFrame
from
MDANSE.GUI.PeriodicTableViewer
import
PeriodicTableViewer
from
MDANSE.GUI.UserDefinitionViewer
import
UserDefinitionViewer
class
ElementsDatabaseEditorApp
(
wx
.
App
):
def
OnInit
(
self
):
f
=
ElementsDatabaseEditor
(
None
)
f
.
Show
()
self
.
SetTopWindow
(
f
)
return
True
class
MainApplication
(
wx
.
App
):
def
OnInit
(
self
):
f
=
MainFrame
(
None
)
f
.
Show
()
return
True
class
PeriodicTableViewerApp
(
wx
.
App
):
def
OnInit
(
self
):
f
=
PeriodicTableViewer
(
None
)
f
.
Show
()
self
.
SetTopWindow
(
f
)
return
True
class
PlotterApp
(
wx
.
App
):
def
OnInit
(
self
):
f
=
PlotterFrame
(
None
)
f
.
Show
()
return
True
class
UserDefinitionViewerApp
(
wx
.
App
):
def
OnInit
(
self
):
f
=
UserDefinitionViewer
(
None
)
self
.
SetTopWindow
(
f
)
f
.
Show
()
return
True
Scripts/mdanse_elements_database
View file @
20802da1
#!python
import
wx
from
MDANSE.GUI.ElementsDatabaseEditor
import
ElementsDatabaseEditor
class
ElementsDatabaseEditorApp
(
wx
.
App
):
def
OnInit
(
self
):
f
=
ElementsDatabaseEditor
(
None
)
f
.
Show
()
self
.
SetTopWindow
(
f
)
return
True
if
__name__
==
"__main__"
:
from
MDANSE.GUI.Apps
import
ElementsDatabaseEditorApp
app
=
ElementsDatabaseEditorApp
(
None
)
app
.
MainLoop
()
Scripts/mdanse_gui
View file @
20802da1
#!/usr/bin/env python
import
wx
from
MDANSE.GUI.MainFrame
import
MainFrame
class
MainApplication
(
wx
.
App
):
def
OnInit
(
self
):
f
=
MainFrame
(
None
)
f
.
Show
()
return
True
if
__name__
==
"__main__"
:
from
MDANSE.GUI.Apps
import
MainApplication
app
=
MainApplication
(
None
)
app
.
MainLoop
()
...
...
Scripts/mdanse_periodic_table
View file @
20802da1
#!python
import
wx
from
MDANSE.GUI.PeriodicTableViewer
import
PeriodicTableViewer
class
PeriodicTableViewerApp
(
wx
.
App
):
def
OnInit
(
self
):
f
=
PeriodicTableViewer
(
None
)
f
.
Show
()
self
.
SetTopWindow
(
f
)
return
True
if
__name__
==
"__main__"
:
from
MDANSE.GUI.Apps
import
PeriodicTableViewerApp
app
=
PeriodicTableViewerApp
(
None
)
app
.
MainLoop
()
Scripts/mdanse_plotter
View file @
20802da1
#!python
import
wx
from
MDANSE.Framework.Plugins.Plotter.PlotterPlugin
import
PlotterFrame
class
Plotter
(
wx
.
App
):
def
OnInit
(
self
):
f
=
PlotterFrame
(
None
)
f
.
Show
()
return
True
if
__name__
==
"__main__"
:
app
=
Plotter
()
from
MDANSE.GUI.Apps
import
PlotterApp
app
=
PlotterApp
()
app
.
MainLoop
()
\ No newline at end of file
Scripts/mdanse_ud_editor
View file @
20802da1
#!python
import
wx
from
MDANSE.GUI.UserDefinitionViewer
import
UserDefinitionViewer
class
UserDefinitionViewerApp
(
wx
.
App
):
def
OnInit
(
self
):
f
=
UserDefinitionViewer
(
None
)
self
.
SetTopWindow
(
f
)
f
.
Show
()
return
True
if
__name__
==
"__main__"
:
from
MDANSE.GUI.Apps
import
UserDefinitionViewerApp
app
=
UserDefinitionViewerApp
(
None
)
app
.
MainLoop
()
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