Commit 1d90a344 authored by Taylor Hanayik's avatar Taylor Hanayik
Browse files

rename imported modules

parent d12a2a2f
......@@ -9,8 +9,8 @@ import os
import wx
from fsl.data import image
import fsl.gui.views as views
import fsl.gui.tools as tools
import fsl.gui.views as fslviews
import fsl.gui.tools as fsltools
class BaseGui(object):
......@@ -46,10 +46,10 @@ class BetGui(BaseGui):
if model is None:
# set the model
self.model = tools.Bet()
self.model = fsltools.Bet()
# set the view
self.view = views.BetView(parent, title)
self.view = fslviews.BetView(parent, title)
# update the view with some model data
self.view.options.choice_btype.AppendItems(list(self.model.bet_type_choices.keys()))
......
......@@ -8,7 +8,7 @@ import wx
import wx.lib.scrolledpanel as scrolled
from fsleyes_widgets.floatslider import SliderSpinPanel
import fsl.gui.widgets as widgets
import fsl.gui.widgets as fslwidgets
class BetOptions(wx.CollapsiblePane):
......@@ -81,20 +81,20 @@ class BetView(wx.Panel):
sizer = wx.BoxSizer(wx.VERTICAL)
self.title_panel = widgets.Title(self, self.title)
self.title_panel = fslwidgets.Title(self, self.title)
sizer.Add(self.title_panel, proportion=0, flag=wx.ALIGN_CENTER | wx.ALL, border=5)
self.input = widgets.Input(self).set_label("Input image*")
self.input = fslwidgets.Input(self).set_label("Input image*")
sizer.Add(self.input, proportion=0, flag=wx.EXPAND | wx.ALL, border=5)
self.t2_input = widgets.Input(self).set_label("Additional T2w image")
self.t2_input = fslwidgets.Input(self).set_label("Additional T2w image")
sizer.Add(self.t2_input, proportion=0, flag=wx.EXPAND | wx.ALL, border=5)
self.t2_input.Hide() # hide by default unless a special bet mode is chosen
self.output = widgets.Output(self).set_label("Output Image*")
self.output = fslwidgets.Output(self).set_label("Output Image*")
sizer.Add(self.output, proportion=0, flag=wx.EXPAND | wx.ALL, border=5)
self.action_panel = widgets.ToolActionPanel(self)
self.action_panel = fslwidgets.ToolActionPanel(self)
self.action_panel.pause_icon.Hide() # hide the pause icon since it is not needed
sizer.Add(self.action_panel, proportion=0, flag=wx.ALIGN_RIGHT | wx.ALL, border=5)
......@@ -104,7 +104,7 @@ class BetView(wx.Panel):
self.options = BetOptions(self._scroll_panel, label="Options", style=wx.CP_NO_TLW_RESIZE)
scroll_sizer.Add(self.options, proportion=0, flag=wx.EXPAND | wx.LEFT | wx.RIGHT, border=10)
self.orthoview = widgets.OrthoView(self._scroll_panel, label="Image Display", style=wx.CP_NO_TLW_RESIZE)
self.orthoview = fslwidgets.OrthoView(self._scroll_panel, label="Image Display", style=wx.CP_NO_TLW_RESIZE)
scroll_sizer.Add(self.orthoview, proportion=0, flag=wx.EXPAND | wx.ALL, border=10)
self._scroll_panel.SetSizer(scroll_sizer)
......
......@@ -8,7 +8,7 @@ from fsleyes.main import embed
import fsleyes.profiles as profiles
import fsleyes.profiles.profilemap as profilemap
from fsleyes.frame import FSLeyesFrame
import fsl.gui.icons as icons
import fsl.gui.icons as fslicons
def layout_from(widget):
"""
......@@ -128,7 +128,7 @@ class ToolActionPanel(wx.Panel):
self,
wx.ID_ANY,
wx.Bitmap(
icons.icon_code, wx.BITMAP_TYPE_PNG
fslicons.icon_code, wx.BITMAP_TYPE_PNG
),
wx.DefaultPosition,
wx.DefaultSize,
......@@ -139,7 +139,7 @@ class ToolActionPanel(wx.Panel):
self,
wx.ID_ANY,
wx.Bitmap(
icons.icon_pause, wx.BITMAP_TYPE_PNG
fslicons.icon_pause, wx.BITMAP_TYPE_PNG
),
wx.DefaultPosition,
wx.DefaultSize,
......@@ -150,7 +150,7 @@ class ToolActionPanel(wx.Panel):
self,
wx.ID_ANY,
wx.Bitmap(
icons.icon_play, wx.BITMAP_TYPE_PNG
fslicons.icon_play, wx.BITMAP_TYPE_PNG
),
wx.DefaultPosition,
wx.DefaultSize,
......
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