This file contains the SVN revision history for pycollapsiblepane, at revision 68453.
Available information include commit date, the name of the committer, the file size, the SVN log messages and a diff from the previous version (if available).
The following log message was entered by the committer:
Ensure that self and self._pButton still exist before trying to use them in a call-after function.
Version SVN diff:
--- wxPython/3rdParty/AGW/agw/pycollapsiblepane.py 2011/07/24 21:36:47 68362
+++ wxPython/3rdParty/AGW/agw/pycollapsiblepane.py 2011/07/29 17:27:11 68453
@@ -314,8 +314,9 @@
# others.
def paint(evt):
def updateBtn():
- self._pButton.Refresh()
- self._pButton.Update()
+ if self and self._pButton:
+ self._pButton.Refresh()
+ self._pButton.Update()
wx.CallAfter(updateBtn)
evt.Skip()
self._pStaticBox.Bind(wx.EVT_PAINT, paint)