Merge pull request #1569 from pbrod/Fix_issue1554

Fixes issue # 1554:
This commit is contained in:
Robin Dunn
2020-03-23 15:35:41 -07:00
committed by GitHub
50 changed files with 174 additions and 174 deletions

View File

@@ -290,7 +290,7 @@ class FileBrowseButtonWithHistory( FileBrowseButton ):
def GetHistory( self ):
"""Return the current history list"""
if self.historyCallBack != None:
if self.historyCallBack is not None:
return self.historyCallBack()
elif self.history:
return list( self.history )
@@ -300,7 +300,7 @@ class FileBrowseButtonWithHistory( FileBrowseButton ):
def OnSetFocus(self, event):
"""When the history scroll is selected, update the history"""
if self.historyCallBack != None:
if self.historyCallBack is not None:
self.SetHistory( self.historyCallBack(), control=self.textControl)
event.Skip()