AGW Logo

svn SVN Revision 68453 For pycollapsiblepane

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).


file_info File Information

  • Commit Date: 17-Oct-2008 21:01:24 UTC
  • Committer: RD
  • File Size: 29418 byte(s)

svn_log Log Messages

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.


svn_diff Diff To Previous Version (68362)

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)
Tree