Index: src/sas/guiframe/local_perspectives/plotting/slicerpanel.py
===================================================================
--- src/sas/guiframe/local_perspectives/plotting/slicerpanel.py	(revision 27ab091887f192d9271d84f7bd03bf11a7793ab0)
+++ src/sas/guiframe/local_perspectives/plotting/slicerpanel.py	(revision b40ad402cdc9c4a7e69f4ce5a13e29b50b8242fc)
@@ -1,4 +1,2 @@
-
-
 import wx
 import wx.lib.newevent
@@ -13,5 +11,5 @@
 class SlicerPanel(wx.Panel, PanelBase):
     """
-    Panel class to show the slicer parameters 
+    Panel class to show the slicer parameters
     """
     #TODO: show units
@@ -22,10 +20,10 @@
     window_caption = "Slicer Panel"
     CENTER_PANE = False
-    
+
     def __init__(self, parent, id=-1, type=None, base=None,
-                params=None, *args, **kwargs):
+                 params=None, *args, **kwargs):
         wx.Panel.__init__(self, parent, id, *args, **kwargs)
         PanelBase.__init__(self)
-        ##  Initialization of the class     
+        ##  Initialization of the class
         self.base = base
         if params is None:
@@ -39,9 +37,9 @@
         self.bck = wx.GridBagSizer(5, 5)
         self.SetSizer(self.bck)
-        if type == None and params == None:  
-            label = "Right-click on 2D plot for slicer options"  
+        if type == None and params == None:
+            label = "Right-click on 2D plot for slicer options"
             title = wx.StaticText(self, -1, label, style=wx.ALIGN_LEFT)
-            self.bck.Add(title, (0, 0), (1, 2), 
-                         flag=wx.LEFT|wx.ALIGN_CENTER_VERTICAL, border=15)
+            self.bck.Add(title, (0, 0), (1, 2),
+                         flag=wx.LEFT | wx.ALIGN_CENTER_VERTICAL, border=15)
         else:
             self.set_slicer(type, params)
@@ -54,31 +52,31 @@
         Process EVT_SLICER events
         When the slicer changes, update the panel
-        
+
         :param event: EVT_SLICER event
-        
+
         """
         event.Skip()
         if event.obj_class == None:
-            self.set_slicer(None, None) 
+            self.set_slicer(None, None)
         else:
             self.set_slicer(event.type, event.params)
-        
+
     def set_slicer(self, type, params):
         """
         Rebuild the panel
         """
-        self.bck.Clear(True)  
-        self.type = type  
+        self.bck.Clear(True)
+        self.type = type
         if type == None:
             label = "Right-click on 2D plot for slicer options"
             title = wx.StaticText(self, -1, label, style=wx.ALIGN_LEFT)
-            self.bck.Add(title, (0, 0), (1, 2), 
-                         flag=wx.LEFT|wx.ALIGN_CENTER_VERTICAL, border=15)
+            self.bck.Add(title, (0, 0), (1, 2),
+                         flag=wx.LEFT | wx.ALIGN_CENTER_VERTICAL, border=15)
         else:
             title_text = str(type) + "Parameters"
-            title = wx.StaticText(self, -1, title_text, 
+            title = wx.StaticText(self, -1, title_text,
                                   style=wx.ALIGN_LEFT)
-            self.bck.Add(title, (0, 0), (1, 2), 
-                         flag=wx.LEFT|wx.ALIGN_CENTER_VERTICAL, border=15)
+            self.bck.Add(title, (0, 0), (1, 2),
+                         flag=wx.LEFT | wx.ALIGN_CENTER_VERTICAL, border=15)
             n = 1
             self.parameters = []
@@ -86,11 +84,10 @@
             keys.sort()
             for item in keys:
-                if not item.lower() in ["num_points", "avg", "avg_error", "sum",
-                                         "sum_error"]:
+                if not item.lower() in ["num_points", "avg", "avg_error", "sum", "sum_error"]:
                     n += 1
                     text = wx.StaticText(self, -1, item, style=wx.ALIGN_LEFT)
-                    self.bck.Add(text, (n-1, 0), 
-                            flag=wx.LEFT|wx.ALIGN_CENTER_VERTICAL, border=15)
-                    ctl = wx.TextCtrl(self, -1, size=(80, 20), 
+                    self.bck.Add(text, (n - 1, 0),
+                                 flag=wx.LEFT | wx.ALIGN_CENTER_VERTICAL, border=15)
+                    ctl = wx.TextCtrl(self, -1, size=(80, 20),
                                       style=wx.TE_PROCESS_ENTER)
                     hint_msg = "Modify the value of %s to change " % item
@@ -102,26 +99,22 @@
                     ctl.Bind(wx.EVT_KILL_FOCUS, self.onTextEnter)
                     self.parameters.append([item, ctl])
-                    self.bck.Add(ctl, (n-1, 1), flag=wx.TOP|wx.BOTTOM, border=0)
+                    self.bck.Add(ctl, (n - 1, 1), flag=wx.TOP | wx.BOTTOM, border=0)
             for item in keys:
-                if  item.lower() in ["num_points", "avg", "avg_error", "sum",
-                                      "sum_error"]:
+                if  item.lower() in ["num_points", "avg", "avg_error", "sum", "sum_error"]:
                     n += 1
-                    text = wx.StaticText(self, -1, item + ": ", 
-                                         style=wx.ALIGN_LEFT)
-                    self.bck.Add(text, (n-1, 0), 
-                                 flag=wx.LEFT|wx.ALIGN_CENTER_VERTICAL, 
+                    text = wx.StaticText(self, -1, item + ": ", style=wx.ALIGN_LEFT)
+                    self.bck.Add(text, (n - 1, 0), flag=wx.LEFT | wx.ALIGN_CENTER_VERTICAL,
                                  border=15)
-                    ctl = wx.StaticText(self, -1, 
+                    ctl = wx.StaticText(self, -1,
                                         str(format_number(params[item])),
                                         style=wx.ALIGN_LEFT)
                     ctl.SetToolTipString("Result %s" % item)
-                    self.bck.Add(ctl, (n-1, 1), flag=wx.TOP|wx.BOTTOM, border=0)       
+                    self.bck.Add(ctl, (n - 1, 1), flag=wx.TOP | wx.BOTTOM, border=0)
         self.bck.Layout()
-        #self.bck.Fit(self)
         self.Layout()
         psizer = self.parent.GetSizer()
         if psizer != None:
             psizer.Layout()
-        
+
     def onSetFocus(self, evt):
         """
@@ -134,17 +127,17 @@
         wx.CallAfter(widget.SetSelection, -1, -1)
         return
-    
+
     def onParamChange(self, evt):
         """
         Receive and event and reset the text field contained in self.parameters
-            
+
         """
         evt.Skip()
-        for item in self.parameters:              
+        for item in self.parameters:
             if item[0] in evt.params:
                 item[1].SetValue(format_number(evt.params[item[0]]))
                 item[1].Refresh()
-   
-    def onTextEnter(self, evt): 
+
+    def onTextEnter(self, evt):
         """
         Parameters have changed
@@ -156,6 +149,5 @@
             try:
                 params[item[0]] = float(item[1].GetValue())
-                item[1].SetBackgroundColour(
-                        wx.SystemSettings_GetColour(wx.SYS_COLOUR_WINDOW))
+                item[1].SetBackgroundColour(wx.SystemSettings_GetColour(wx.SYS_COLOUR_WINDOW))
                 item[1].Refresh()
             except:
@@ -163,5 +155,5 @@
                 item[1].SetBackgroundColour("pink")
                 item[1].Refresh()
-            
+
         if has_error == False:
             # Post parameter event
@@ -175,4 +167,4 @@
         """
         ID = self.uid
-        self.parent.delete_panel(ID)            
+        self.parent.delete_panel(ID)
         self.frame.Destroy()
