Merged modifications from the 2.6 branch
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36607 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -142,7 +142,8 @@ normal clipboard, if primary is True.", "");
|
||||
self._instance = None
|
||||
def _checkInstance(self):
|
||||
if self._instance is None:
|
||||
self._instance = self._initfunc(*self._args, **self._kwargs)
|
||||
if wx.GetApp():
|
||||
self._instance = self._initfunc(*self._args, **self._kwargs)
|
||||
def __getattr__(self, name):
|
||||
self._checkInstance()
|
||||
return getattr(self._instance, name)
|
||||
|
||||
Reference in New Issue
Block a user