Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Scientific Software
MDANSE
Commits
8759874a
Commit
8759874a
authored
Apr 04, 2020
by
Remi Perenon
Browse files
Switching main panel order on macOS and Linux
parent
df46eed2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Src/GUI/MainFrame.py
View file @
8759874a
...
...
@@ -22,7 +22,8 @@ import wx
import
wx.aui
as
aui
from
MDANSE
import
LOGGER
,
PLATFORM
,
REGISTRY
from
MDANSE.__pkginfo__
import
__author__
,
__commit__
,
__version__
,
__beta__
from
MDANSE.__pkginfo__
import
__author__
,
__commit__
,
__version__
,
__beta__
from
MDANSE.Core.Platform
import
PLATFORM
from
MDANSE.Framework.Jobs.Converter
import
Converter
from
MDANSE.GUI.ControllerPanel
import
ControllerPanel
from
MDANSE.GUI.DataController
import
DATA_CONTROLLER
...
...
@@ -104,11 +105,16 @@ class MainFrame(wx.Frame):
self
.
_panels
[
"working"
]
=
WorkingPanel
(
self
)
self
.
_panels
[
"controller"
]
=
ControllerPanel
(
self
)
# Add the panes corresponding to the tree control and the notebook.
# Add the panes corresponding to the tree control and the notebook.
paneInfo1
=
aui
.
AuiPaneInfo
()
self
.
_mgr
.
AddPane
(
self
.
_panels
[
"data"
],
paneInfo1
.
Caption
(
"Data"
).
Name
(
"data"
).
Left
().
CloseButton
(
True
).
DestroyOnClose
(
False
).
MinSize
((
250
,
-
1
)))
paneInfo2
=
aui
.
AuiPaneInfo
()
self
.
_mgr
.
AddPane
(
self
.
_panels
[
"plugins"
],
paneInfo2
.
Caption
(
"Plugins"
).
Name
(
"plugins"
).
Left
().
CloseButton
(
True
).
DestroyOnClose
(
False
).
MinSize
((
250
,
-
1
)))
paneInfo2
=
aui
.
AuiPaneInfo
()
# Order is first "Data", and then "Plugins". It is switched on Linux and macOS
if
PLATFORM
.
name
==
"windows"
:
self
.
_mgr
.
AddPane
(
self
.
_panels
[
"data"
],
paneInfo1
.
Caption
(
"Data"
).
Name
(
"data"
).
Left
().
CloseButton
(
True
).
DestroyOnClose
(
False
).
MinSize
((
250
,
-
1
)))
self
.
_mgr
.
AddPane
(
self
.
_panels
[
"plugins"
],
paneInfo2
.
Caption
(
"Plugins"
).
Name
(
"plugins"
).
Left
().
CloseButton
(
True
).
DestroyOnClose
(
False
).
MinSize
((
250
,
-
1
)))
else
:
self
.
_mgr
.
AddPane
(
self
.
_panels
[
"plugins"
],
paneInfo2
.
Caption
(
"Plugins"
).
Name
(
"plugins"
).
Left
().
CloseButton
(
True
).
DestroyOnClose
(
False
).
MinSize
((
250
,
-
1
)))
self
.
_mgr
.
AddPane
(
self
.
_panels
[
"data"
],
paneInfo1
.
Caption
(
"Data"
).
Name
(
"data"
).
Left
().
CloseButton
(
True
).
DestroyOnClose
(
False
).
MinSize
((
250
,
-
1
)))
paneInfo3
=
aui
.
AuiPaneInfo
()
self
.
_mgr
.
AddPane
(
self
.
_panels
[
"working"
],
paneInfo3
.
Caption
(
"Working panel"
).
Name
(
"working"
).
Center
().
CloseButton
(
False
))
paneInfo4
=
aui
.
AuiPaneInfo
()
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment