Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
FSL
fslgui
Commits
7a531db9
Commit
7a531db9
authored
Jun 16, 2020
by
Taylor Hanayik
Browse files
testing props.build.buidGUI
parent
06abdca4
Changes
1
Hide whitespace changes
Inline
Side-by-side
fsl/gui/widgets.py
View file @
7a531db9
...
...
@@ -130,6 +130,14 @@ def choice(parent, propobj, **kwargs):
st
=
wx
.
StaticText
(
panel
,
label
=
kwargs
[
'label'
])
panel
.
GetSizer
().
Add
(
st
,
proportion
=
0
,
flag
=
wx
.
ALL
|
wx
.
ALIGN_CENTER_VERTICAL
,
border
=
2
)
prp
=
props
.
widgets
.
makeWidget
(
panel
,
propobj
,
kwargs
[
'propName'
])
# prp = props.build.buildGUI(
# panel,
# propobj,
# view=props.Widget(
# kwargs['propName'],
# visibleWhen=lambda i: getattr(i, kwargs['dependsOn'])==kwargs['dependsOnVal']
# )
# )
panel
.
GetSizer
().
Add
(
prp
,
proportion
=
0
,
flag
=
wx
.
ALL
|
wx
.
EXPAND
,
border
=
5
)
return
panel
...
...
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