Commit 7a531db9 authored by Taylor Hanayik's avatar Taylor Hanayik
Browse files

testing props.build.buidGUI

parent 06abdca4
...@@ -130,6 +130,14 @@ def choice(parent, propobj, **kwargs): ...@@ -130,6 +130,14 @@ def choice(parent, propobj, **kwargs):
st = wx.StaticText(panel, label=kwargs['label']) st = wx.StaticText(panel, label=kwargs['label'])
panel.GetSizer().Add(st, proportion=0, flag=wx.ALL | wx.ALIGN_CENTER_VERTICAL, border=2) 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.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) panel.GetSizer().Add(prp, proportion=0, flag=wx.ALL | wx.EXPAND, border=5)
return panel return panel
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment