From 6b629328ac6dc7fde9cc7ec1e6055579b604bc77 Mon Sep 17 00:00:00 2001 From: Czarek Tomczak Date: Sat, 10 Jan 2015 09:17:20 +0100 Subject: [PATCH] Fixed BC break in cefpython.wx.chromectrl introduced in 31.1. --- cefpython/cef3/wx-subpackage/chromectrl.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cefpython/cef3/wx-subpackage/chromectrl.py b/cefpython/cef3/wx-subpackage/chromectrl.py index c26e0e78..542774cf 100644 --- a/cefpython/cef3/wx-subpackage/chromectrl.py +++ b/cefpython/cef3/wx-subpackage/chromectrl.py @@ -132,6 +132,12 @@ def __init__(self, parent, url="", useTimer=True, size=(-1, -1), *args, **kwargs): wx.Window.__init__(self, parent, id=wx.ID_ANY, size=size, *args, **kwargs) + + # This timer is not used anymore, but creating it for backwards + # compatibility. In one of external projects ChromeWindow.timer.Stop() + # is being called during browser destruction. + self.timer = wx.Timer() + # On Linux absolute file urls need to start with "file://" # otherwise a path of "/home/some" is converted to "http://home/some". if platform.system() == "Linux":