Merge pull request #2359 from kived/window-self

add __self__ property to Window
This commit is contained in:
Gabriel Pettier 2014-07-28 14:30:37 +02:00
commit c4a0b12844
1 changed files with 4 additions and 0 deletions

View File

@ -464,6 +464,10 @@ class WindowBase(EventDispatcher):
.. versionadded:: 1.2.0
'''
@property
def __self__(self):
return self
top = NumericProperty(None, allownone=True)
left = NumericProperty(None, allownone=True)
position = OptionProperty('auto', options=['auto', 'custom'])