Final part of Object renaming

This commit is contained in:
markm 2006-04-25 20:46:03 +00:00
parent 0139ecf371
commit a3d9ef9081
1 changed files with 2 additions and 1 deletions

View File

@ -139,13 +139,14 @@ class WindowSpecification(object):
#write_appdata(self.criteria, ctrls)
return ctrls[-1]
def ctrl_(self):
"Allow the calling code to get the HwndWrapper object"
message = "ctrl_() has been renamed to ControlObject() please use " \
"that method in the future. ctrl_() will be removed at some " \
"future time."
warnings.warn(message, DeprecationWarning)
return self.ControlObject()
return self.WrapperObject()
def Window_(self, **criteria):
"Add the criteria that will be matched when we resolve the control"