projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Applied patch [ 1407318 ] bitmap clipping / transparency mask (X11 port)
[wxWidgets.git]
/
wxPython
/
wx
/
lib
/
filebrowsebutton.py
diff --git
a/wxPython/wx/lib/filebrowsebutton.py
b/wxPython/wx/lib/filebrowsebutton.py
index c731be2b6eab740ed636350506ed4d4e6805c93d..0620161d112d03ea2c4d20da5c5b0fb1bb24c14e 100644
(file)
--- a/
wxPython/wx/lib/filebrowsebutton.py
+++ b/
wxPython/wx/lib/filebrowsebutton.py
@@
-242,8
+242,8
@@
class FileBrowseButtonWithHistory( FileBrowseButton ):
textControl.SetToolTipString( self.toolTip )
textControl.Bind(wx.EVT_SET_FOCUS, self.OnSetFocus)
if self.changeCallback:
textControl.SetToolTipString( self.toolTip )
textControl.Bind(wx.EVT_SET_FOCUS, self.OnSetFocus)
if self.changeCallback:
- textControl.Bind(wx.EVT_TEXT, self.
changeCallback
)
- textControl.Bind(wx.EVT_COMBOBOX, self.
changeCallback
)
+ textControl.Bind(wx.EVT_TEXT, self.
OnChanged
)
+ textControl.Bind(wx.EVT_COMBOBOX, self.
OnChanged
)
if self.history:
history=self.history
self.history=None
if self.history:
history=self.history
self.history=None
@@
-289,8
+289,10
@@
class FileBrowseButtonWithHistory( FileBrowseButton ):
"""Return the current history list"""
if self.historyCallBack != None:
return self.historyCallBack()
"""Return the current history list"""
if self.historyCallBack != None:
return self.historyCallBack()
- el
se
:
+ el
if self.history
:
return list( self.history )
return list( self.history )
+ else:
+ return []
def OnSetFocus(self, event):
def OnSetFocus(self, event):