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
f90f5f6b
Commit
f90f5f6b
authored
Aug 25, 2016
by
eric pellegrini
Browse files
Bug fix with panel captions of the MainFrame
parent
a7236311
Changes
1
Hide whitespace changes
Inline
Side-by-side
MDANSE/GUI/MainFrame.py
View file @
f90f5f6b
...
@@ -117,11 +117,14 @@ class MainFrame(wx.Frame):
...
@@ -117,11 +117,14 @@ class MainFrame(wx.Frame):
self
.
_panels
[
"controller"
]
=
ControllerPanel
(
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.
paneInfo
=
aui
.
AuiPaneInfo
()
paneInfo1
=
aui
.
AuiPaneInfo
()
self
.
_mgr
.
AddPane
(
self
.
_panels
[
"data"
],
paneInfo
.
Caption
(
"Data"
).
Name
(
"data"
).
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
)))
self
.
_mgr
.
AddPane
(
self
.
_panels
[
"plugins"
],
paneInfo
.
Caption
(
"Plugins"
).
Name
(
"plugins"
).
Left
().
CloseButton
(
True
).
DestroyOnClose
(
False
).
MinSize
((
250
,
-
1
)))
paneInfo2
=
aui
.
AuiPaneInfo
()
self
.
_mgr
.
AddPane
(
self
.
_panels
[
"working"
],
paneInfo
.
Caption
(
"Working panel"
).
Name
(
"working"
).
Center
().
CloseButton
(
False
))
self
.
_mgr
.
AddPane
(
self
.
_panels
[
"plugins"
],
paneInfo2
.
Caption
(
"Plugins"
).
Name
(
"plugins"
).
Left
().
CloseButton
(
True
).
DestroyOnClose
(
False
).
MinSize
((
250
,
-
1
)))
self
.
_mgr
.
AddPane
(
self
.
_panels
[
"controller"
],
paneInfo
.
Name
(
"controller"
).
Name
(
"controller"
).
Floatable
().
Right
().
Bottom
().
CloseButton
(
True
).
DestroyOnClose
(
False
).
MinSize
((
-
1
,
120
)))
paneInfo3
=
aui
.
AuiPaneInfo
()
self
.
_mgr
.
AddPane
(
self
.
_panels
[
"working"
],
paneInfo3
.
Caption
(
"Working panel"
).
Name
(
"working"
).
Center
().
CloseButton
(
False
))
paneInfo4
=
aui
.
AuiPaneInfo
()
self
.
_mgr
.
AddPane
(
self
.
_panels
[
"controller"
],
paneInfo4
.
Name
(
"controller"
).
Name
(
"controller"
).
Floatable
().
Right
().
Bottom
().
CloseButton
(
True
).
DestroyOnClose
(
False
).
MinSize
((
-
1
,
120
)))
self
.
_mgr
.
Update
()
self
.
_mgr
.
Update
()
...
...
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