Changeset e075203 in sasview for src/sas/sasgui/guiframe/local_perspectives/plotting/parameters_panel_slicer.py
- Timestamp:
- Mar 22, 2017 10:08:56 AM (8 years ago)
- Branches:
- master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- f6bb24d
- Parents:
- 39f0bf4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/guiframe/local_perspectives/plotting/parameters_panel_slicer.py
r39f0bf4 re075203 46 46 """ 47 47 event.Skip() 48 if event.obj_class ==None:48 if event.obj_class is None: 49 49 self.set_slicer(None, None) 50 50 else: … … 59 59 wx.LEFT | wx.EXPAND | wx.ADJUST_MINSIZE, 5) 60 60 self.type = type 61 if type ==None:61 if type is None: 62 62 label = "Right-click on 2D plot for slicer options" 63 63 title = wx.StaticText(self, -1, label, style=wx.ALIGN_LEFT) … … 164 164 try: 165 165 params[item[0]] = float(item[1].GetValue()) 166 item[1].SetBackgroundColour(wx.SystemSettings_GetColour(wx.SYS_COLOUR_WINDOW)) 166 item[1].SetBackgroundColour( 167 wx.SystemSettings_GetColour(wx.SYS_COLOUR_WINDOW)) 167 168 item[1].Refresh() 168 169 except: … … 171 172 item[1].Refresh() 172 173 173 if has_error == False:174 if not has_error: 174 175 # Post parameter event 175 # #parent hieris plotter2D176 # parent here is plotter2D 176 177 event = SlicerParameterEvent(type=self.type, params=params) 177 178 wx.PostEvent(self.parent, event)
Note: See TracChangeset
for help on using the changeset viewer.