mirror of https://github.com/kivy/kivy.git
Merge pull request #2359 from kived/window-self
add __self__ property to Window
This commit is contained in:
commit
c4a0b12844
|
@ -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'])
|
||||
|
|
Loading…
Reference in New Issue