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
eb4a6f25
Commit
eb4a6f25
authored
Aug 22, 2016
by
eric pellegrini
Browse files
Removed the Preferences button from the toolbar. Currently not used anymore.
parent
7d17580b
Changes
1
Hide whitespace changes
Inline
Side-by-side
MDANSE/GUI/MainFrame.py
View file @
eb4a6f25
...
...
@@ -190,7 +190,7 @@ class MainFrame(wx.Frame):
elementsDatabaseButton
=
self
.
_toolbar
.
AddSimpleTool
(
wx
.
ID_ANY
,
ICONS
[
"atom"
,
32
,
32
],
'Launch the elements database editor'
)
plotButton
=
self
.
_toolbar
.
AddSimpleTool
(
wx
.
ID_ANY
,
ICONS
[
"plot"
,
32
,
32
],
'Launch the NetCDF plotter'
)
udButton
=
self
.
_toolbar
.
AddSimpleTool
(
wx
.
ID_ANY
,
ICONS
[
"user"
,
32
,
32
],
'Launch the user definitions editor'
)
preferencesButton
=
self
.
_toolbar
.
AddSimpleTool
(
wx
.
ID_ANY
,
ICONS
[
"preferences"
,
32
,
32
],
'Launch the preferences editor'
)
#
preferencesButton = self._toolbar.AddSimpleTool(wx.ID_ANY, ICONS["preferences",32,32], 'Launch the preferences editor')
registryButton
=
self
.
_toolbar
.
AddSimpleTool
(
wx
.
ID_ANY
,
ICONS
[
"registry"
,
32
,
32
],
'Inspect MDANSE classes framework'
)
templateButton
=
self
.
_toolbar
.
AddSimpleTool
(
wx
.
ID_ANY
,
ICONS
[
"template"
,
32
,
32
],
'Save a template for a new analysis'
)
apiButton
=
self
.
_toolbar
.
AddSimpleTool
(
wx
.
ID_ANY
,
ICONS
[
"api"
,
32
,
32
],
'Open MDANSE API'
)
...
...
@@ -208,7 +208,7 @@ class MainFrame(wx.Frame):
self
.
Bind
(
wx
.
EVT_MENU
,
self
.
on_open_periodic_table
,
periodicTableButton
)
self
.
Bind
(
wx
.
EVT_MENU
,
self
.
on_open_elements_database
,
elementsDatabaseButton
)
self
.
Bind
(
wx
.
EVT_MENU
,
self
.
on_start_plotter
,
plotButton
)
self
.
Bind
(
wx
.
EVT_MENU
,
self
.
on_set_preferences
,
preferencesButton
)
#
self.Bind(wx.EVT_MENU, self.on_set_preferences, preferencesButton)
self
.
Bind
(
wx
.
EVT_MENU
,
self
.
on_open_user_definitions
,
udButton
)
self
.
Bind
(
wx
.
EVT_MENU
,
self
.
on_open_classes_registry
,
registryButton
)
self
.
Bind
(
wx
.
EVT_MENU
,
self
.
on_save_job_template
,
templateButton
)
...
...
@@ -382,15 +382,15 @@ or directly to the MDANSE mailing list:
if
d
.
ShowModal
()
==
wx
.
ID_YES
:
self
.
Destroy
()
def
on_set_preferences
(
self
,
event
):
from
MDANSE.GUI.PreferencesSettings
import
PreferencesSettings
d
=
PreferencesSettings
(
self
)
d
.
ShowModal
()
d
.
Destroy
()
#
def on_set_preferences(self, event):
#
#
from MDANSE.GUI.PreferencesSettings import PreferencesSettings
#
#
d = PreferencesSettings(self)
#
#
d.ShowModal()
#
#
d.Destroy()
def
on_start_plotter
(
self
,
event
=
None
):
...
...
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