Ignore:
Timestamp:
Mar 22, 2017 10:08:56 AM (8 years ago)
Author:
krzywon
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
Message:

PEP 8

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasgui/guiframe/local_perspectives/plotting/parameters_panel_slicer.py

    r39f0bf4 re075203  
    4646        """ 
    4747        event.Skip() 
    48         if event.obj_class == None: 
     48        if event.obj_class is None: 
    4949            self.set_slicer(None, None) 
    5050        else: 
     
    5959                     wx.LEFT | wx.EXPAND | wx.ADJUST_MINSIZE, 5) 
    6060        self.type = type 
    61         if type == None: 
     61        if type is None: 
    6262            label = "Right-click on 2D plot for slicer options" 
    6363            title = wx.StaticText(self, -1, label, style=wx.ALIGN_LEFT) 
     
    164164            try: 
    165165                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)) 
    167168                item[1].Refresh() 
    168169            except: 
     
    171172                item[1].Refresh() 
    172173 
    173         if has_error == False: 
     174        if not has_error: 
    174175            # Post parameter event 
    175             ##parent hier is plotter2D 
     176            # parent here is plotter2D 
    176177            event = SlicerParameterEvent(type=self.type, params=params) 
    177178            wx.PostEvent(self.parent, event) 
Note: See TracChangeset for help on using the changeset viewer.