Add context for uno controls

This commit is contained in:
Mauricio Baeza 2020-11-21 22:53:24 -06:00
parent 41342b8a59
commit 67b8e842b3
1 changed files with 6 additions and 0 deletions

View File

@ -3232,6 +3232,12 @@ class UnoBaseObject(object):
else:
super().__setattr__(name, value)
def __enter__(self):
return self
def __exit__(self, exc_type, exc_value, traceback):
pass
@property
def obj(self):
return self._obj