Commit 42b86f2c authored by Taylor Hanayik's avatar Taylor Hanayik
Browse files

cleanup

parent 5a0ebdc5
......@@ -176,7 +176,7 @@ def makeWidget(parent, propObj, key, tag, value):
"""
if key in allowedWidgets:
wid = widgetFromKey(key)
print('making widget: ', key)
# print('making widget: ', key)
if isinstance(value, dict):
w = wid(parent, propObj, **value)
else:
......
......@@ -24,11 +24,6 @@ import fsl.gui.icons as fslicons
import fsl.gui.exceptions as fslerrs
props.initGUI()
#class CheckboxProp(props.HasProperties):
# checked = props.Boolean()
#class FilePathProp(props.HasProperties):
# filepath = props.FilePath(required=True, exists=True)
class column(wx.Panel):
"""
a wx.Panel with a vertical sizer
......@@ -139,72 +134,6 @@ def choice(parent, propobj, **kwargs):
return panel
# def _embed(parent=None, make_fsleyesframe=True, **kwargs):
# """Initialise FSLeyes and create a :class:`.FSLeyesFrame`, when
# running within another application.
# .. note:: If a ``wx.App`` does not exist, one is created.
# :arg parent: ``wx`` parent object
# :arg make_fsleyesframe: bool, default is True to make a new :class:`.FSLeyesFrame`
# :returns: A tuple containing:
# - The :class:`.OverlayList`
# - The master :class:`.DisplayContext`
# - The :class:`.FSLeyesFrame` or None if make_fsleyesframe=False
# All other arguments are passed to :meth:`.FSLeyesFrame.__init__`.
# """
# import fsleyes_props as props
# import fsleyes.gl as fslgl
# import fsleyes.frame as fslframe
# import fsleyes.overlay as fsloverlay
# import fsleyes.displaycontext as fsldc
# app = wx.GetApp()
# ownapp = app is None
# if ownapp:
# app = FSLeyesApp()
# fsleyes.initialise()
# colourmaps.init()
# props.initGUI()
# called = [False]
# ret = [None]
# def until():
# return called[0]
# def ready():
# frame = None
# fslgl.bootstrap()
# overlayList = fsloverlay.OverlayList()
# displayCtx = fsldc.DisplayContext(overlayList)
# if make_fsleyesframe:
# frame = fslframe.FSLeyesFrame(
# parent, overlayList, displayCtx, **kwargs)
# if ownapp:
# app.SetOverlayListAndDisplayContext(overlayList, displayCtx)
# # Keep a ref to prevent the app from being GC'd
# if make_fsleyesframe:
# frame._embed_app = app
# called[0] = True
# ret[0] = (overlayList, displayCtx, frame)
# fslgl.getGLContext(parent=parent, ready=ready)
# idle.block(10, until=until)
# if ret[0] is None:
# raise RuntimeError('Failed to start FSLeyes')
# return ret[0]
class ViewProfile(profiles.Profile):
def __init__(self, viewPanel, overlayList, displayCtx):
profiles.Profile.__init__(self,
......
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