mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-04 19:10:09 +01:00
Fixes issue # 1554:
Replaced "== None" and "!= None" with "is None" and "is not None", respectively, because the former is slower and error-prone.
This commit is contained in:
@@ -2412,7 +2412,7 @@ class wxPythonDemo(wx.Frame):
|
||||
about.Destroy()
|
||||
|
||||
def OnHelpFind(self, event):
|
||||
if self.finddlg != None:
|
||||
if self.finddlg is not None:
|
||||
return
|
||||
|
||||
self.nb.SetSelection(1)
|
||||
@@ -2422,7 +2422,7 @@ class wxPythonDemo(wx.Frame):
|
||||
|
||||
|
||||
def OnUpdateFindItems(self, evt):
|
||||
evt.Enable(self.finddlg == None)
|
||||
evt.Enable(self.finddlg is None)
|
||||
|
||||
|
||||
def OnFind(self, event):
|
||||
|
||||
Reference in New Issue
Block a user